page-refresh

How do I programmatically refresh a browser

删除回忆录丶 提交于 2019-12-03 02:54:09
问题 I have three computers; Server , Client and Viewer . I am in control of the server and the viewer. The user on the Client connects to the Server and is presented with a webpage. Through a php script the user uploads an image. The image is imbedded in some html. The Viewer is a computer totally without user interaction - there is no keyboard. The Viewer is always at all time running a web browser, displaying the picture page. My problem now is that even though the picture changes on the server

How to check if refresh page event occurs or not after an UI event (ex. click on a button)

陌路散爱 提交于 2019-12-02 19:57:11
问题 Got the following code: driver.findElement(By.id("input_search")).click(); driver.findElement(By.id("input_search")).clear(); if(lower3 == true){ //read a line from a doc document_path = "C:\\MyProject\\src\\harness\\lower_than_3" FileInputStream fis = new FileInputStream(document_path); BufferedReader br = new BufferedReader(new InputStreamReader(fis)); while((line = br.readLine()) != null){ //line is inserted into search field driver.findElement(By.id("input_search")).sendKeys(line); Thread

How can I block page autorefresh in Google Chrome?

安稳与你 提交于 2019-12-02 17:34:43
I would like to stop autorefresh page in Google Chrome, because it is a very annoying and memory consuming issue and I can't work with the developers tools. I'm trying to delete the refresh and setTimeout function from the script using Chrome's developers tools but I have no results. How can I block this annoying feature even for a while from the console? Since <meta http-equiv="Refresh" content="300; URL=?refresh_ce"> removal using DevTools is not sufficient (it doesn't stop page from refreshing) I've executed this code in the console: window.onbeforeunload = function(){ return 'Reload?';} .

How do I programmatically refresh a browser

廉价感情. 提交于 2019-12-02 16:45:30
I have three computers; Server , Client and Viewer . I am in control of the server and the viewer. The user on the Client connects to the Server and is presented with a webpage. Through a php script the user uploads an image. The image is imbedded in some html. The Viewer is a computer totally without user interaction - there is no keyboard. The Viewer is always at all time running a web browser, displaying the picture page. My problem now is that even though the picture changes on the server disk, the webpage is not updated. How do I refresh the web browser on the viewer, or part of the

How to refresh a page in a backbone application

十年热恋 提交于 2019-12-02 16:16:33
I am using backbone to build my web app. Currently I am facing an issue whereby if I am on the home page, I am unable to refresh the same page by just clicking on the 'home' button again. I believe that this is the limitation provided by backbone (does not reload the page if the same URL is called) Is there any way around this? So that I can trigger a page reload when I click on the home button again i.e. call the same URL again? Thanh Nguyen Looking at the backbone.js source, it seems as though this is not possible by default, since it only responds to a url change. And since clicking the

how to run php code on submit button without refreshing/ reloading the page

﹥>﹥吖頭↗ 提交于 2019-12-02 12:20:15
问题 I want to execute some php code on submit button click without refreshing/reloading my page. Is it possible? also i have javascript function on page load that's why i don't want to refresh my page. thanks in advance. <?php if(isset($_POST["search"])) { $show = "SELECT * FROM data"; $rs = mysql_query($show) or die(mysql_error()); $add_to_textbox = "<input type='button' name='btn' value='add' />"; #****results in Grid**** echo "<table width='360px' border='1' cellpadding='2'>"; $rowID=1; while(

How to check if refresh page event occurs or not after an UI event (ex. click on a button)

僤鯓⒐⒋嵵緔 提交于 2019-12-02 10:16:32
Got the following code: driver.findElement(By.id("input_search")).click(); driver.findElement(By.id("input_search")).clear(); if(lower3 == true){ //read a line from a doc document_path = "C:\\MyProject\\src\\harness\\lower_than_3" FileInputStream fis = new FileInputStream(document_path); BufferedReader br = new BufferedReader(new InputStreamReader(fis)); while((line = br.readLine()) != null){ //line is inserted into search field driver.findElement(By.id("input_search")).sendKeys(line); Thread.sleep(100); //press search button- page should NOT refresh if string length for search is lower than

How to keep selected/active HTML link color on page refresh?

北城余情 提交于 2019-12-02 04:32:10
问题 EDIT : I want to keep selected keep HTML link color on page refresh . I tried other problems that already been answered but didn't work on me. For example: When I clicked HTML link Categories the HTML link Quizzes it will change the color to red, and keep the color on page refresh. HTML <div id="col-navigation"> <ul> <li> <a href="#"> Quizzes </a> </li> <li> <a href="#"> Categories </a> </li> <li> <a href="#"> Jump </a> </li> </ul> </div> <div id="quizzes"> Quizzes! <!-- default showed --> <

how to run php code on submit button without refreshing/ reloading the page

巧了我就是萌 提交于 2019-12-02 04:28:43
I want to execute some php code on submit button click without refreshing/reloading my page. Is it possible? also i have javascript function on page load that's why i don't want to refresh my page. thanks in advance. <?php if(isset($_POST["search"])) { $show = "SELECT * FROM data"; $rs = mysql_query($show) or die(mysql_error()); $add_to_textbox = "<input type='button' name='btn' value='add' />"; #****results in Grid**** echo "<table width='360px' border='1' cellpadding='2'>"; $rowID=1; while($row = mysql_fetch_array($rs)) { echo "<tr>"; echo "<td width='130px' id='name.$rowID.'>$row[Name]</td>

How to open another tab on click without refresh current page in ASP.NET Web Forms?

时光毁灭记忆、已成空白 提交于 2019-12-01 23:27:52
问题 I want to be able to click on a button which opens another tab on click. In my case this is done using two ASP.Net controls, one asp literal with <form> tags to format it as a submit button, because I need it to have some POST functionality. The code inside the asp literal looks like the following: <input type='submit' id='openWindowButton' value = 'Open window'> with a given URL and _blank to open the new tab. I am using another asp control, a LinkButton this time, to run an event on click,