refresh

How to force an iFrame to reload once it loads

这一生的挚爱 提交于 2019-11-29 15:54:09
问题 I have numerous iframes that load specific content on my pages. Both the parent and iframe are on the same domain. I have a scrollbar inside the iframe that doesn't seem to load correctly in all browsers. But when I refresh the iframe it loads perfect. I have no idea why it does this. I have used the meta refresh, which works but I don't want the page to refresh constantly, just once. The solution I'm looking for will reload the iFrame content after the iFrame is opened, with a minimal delay.

retain dropdown selection on refresh [duplicate]

こ雲淡風輕ζ 提交于 2019-11-29 15:14:35
Possible Duplicate: retaining selected dropdown option on postback I have a dropdown when user selects the option, the value is passed on to the same url as querystring refreshing the page. after the page refreshes i wanna retain the selected value so user knows what was selected. How do i do this in jquery? <select id="hospitalDropDown" onchange="window.open(this.options[this.selectedIndex].value,'_top')"> <option value="http://mysite.com/events/Pages/default1.aspx">All Hospitals</option> <option value="http://mysite.com/events/Pages/default1.aspx?hos=Dyer">Dyer</option> <option value="http:/

SEO consequences of redirecting with META REFRESH

落爺英雄遲暮 提交于 2019-11-29 14:04:52
问题 Question: What are the SEO consequences of redirecting web traffic with a META REFRESH? Details: I'm working with an old static site that's migrating to a new address. I'm redirecting traffic to the new site using meta refreshes on all static pages, like this: <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.newsite.com/"> Of course, I'd rather write the redirects directly into an Apache file (or an .htaccess file), but due to some server weirdness that's beyond my control, I'm stuck

gif animation not playing on refresh

二次信任 提交于 2019-11-29 13:29:28
First time I view the page with an animated .gif it plays fine on page load (lasts about 2 secs). On refresh (F5), the .gif no longer plays and only the last frame of gif animation is shown. Is there anything I can do do to make sure it plays everytime? For the PHP the much better option then using date("Ymdgis"); is using time() , like this: <img src="picturePath.gif?<?php echo time();?>" /> Strange behavior that's affects every browser.. I usually refresh it manually with this script (it uses jQuery) <img id="gif_animata" src="picturePath.gif"> <script type="text/javascript"> var gifSource =

refreshing iframe contents in AngularJS

别等时光非礼了梦想. 提交于 2019-11-29 13:10:45
问题 I am writing an application which is part Anugular and part jQuery. I am separating them by loading the jQuery content in an iFrame. Upon a certain event (say, upon a ng-click), I need to refresh the iFrame. My Controller contains the following code: $scope.resfeshIframe = function() { //refresh the iFrame with id "anIframe" }; and the iFrame is: <iframe id="anIframe" src="myUrl"></iframe> Can someone help me with it. I can post more code if the required. 回答1: As Paulo Scardine said, the

Send a refresh request to another page opened in the browser

五迷三道 提交于 2019-11-29 13:01:53
I have page A that creates a window with the page B. Page B asks the user some datas, inserts them in the database and then closes itself. After the insertion, I'm trying to make page A refresh automatically (it can be both from A seeing that B has closed, or by a function triggered by B itself before (or after?) closing) How can I do that? JavaScript's window.open() returns reference to the instance of opened window. You may use it to set up onunload event handler, like this: var hWndB = window.open('somepage.php'), hWndA = window.self; hWndB.onunload = function(){ hWndA.location.reload(); }

Refresh entire Excel workbook (all data connections and calculations) every 15 minutes?

牧云@^-^@ 提交于 2019-11-29 12:34:26
I have the following macro to refresh my workbook. This is the same as clicking on the refresh all button. Is there a time element I can add to this code to refresh all data connections and all calculations on all the worksheets in my workbook every 15 minutes? The workbook has cells pulling data from SharePoint list items and contain typical formula calculations as well. Sub Workbook_RefreshAll() ActiveWorkbook.RefreshAll End Sub Gary's Student Enter the following in a standard module: Public RunWhen As Double Public Const cRunIntervalMinutes = 15 Public Const cRunWhat = "Workbook_RefreshAll"

Refresh page after onclick in <a></a>

女生的网名这么多〃 提交于 2019-11-29 12:05:08
I have the following code: <a onclick="removeCart('<?php echo $product['key']; ?>');" name="remove[<?php echo $product['key']; ?>]" class="button"><span>Remove</span></a> When I click the "Remove" button, which is shown with the above code, I want the "onclick" to be executed (which is executed), and after that, the page to be refreshed. Any thoughts? Thanks. To reload the page using javascript you can do: window.location.href=window.location.href So to reload after the onclick simply add that to the end of onclick, eg: onclick="removeCart('<?php echo $product['key']; ?>');window.location.href

How do I stop Eclipse from refreshing some dir?

喜你入骨 提交于 2019-11-29 11:58:29
问题 Every time I start Eclipse it tries to refresh an entire project, which translates to more than 10 minutes of wait time, not to mention the ridiculous amount of memory it would consume. I know there's a global setting to turn off automatic refreshing ( General -> Workspace -> Refresh automatically ). Is there a way to turn that off on individual directories? The rationale is that some directories are seldom changed in some of my projects. 回答1: According to this thread, no : no settings per

Browser refresh behaviour

爱⌒轻易说出口 提交于 2019-11-29 11:31:54
问题 When a user hits Refresh on their browser, it reloads the page but keeps the contents of form fields. While I can see this being a useful default, it can be annoying on some dynamic pages, leading to a broken user experience. Is there a way, in HTTP headers or equivalents, to change this behaviour? 回答1: <input autocomplete="off"> 回答2: This should do the trick: <body onload="document.FormName.reset();"> Replace FormName with the name of your form and then all the fields will be reset when the