page-refresh

Problems refreshing angularjs changes on production server

折月煮酒 提交于 2019-12-21 04:34:22
问题 I have a recurring issue that occurs when I make changes to my angularjs app. The problem is that I have to refresh the page if I want to seed the changes that I have made. This is a problem, because I don't want my users to have to refresh the page (they may not know to do this). They may think the site is broken. Is there some kind of angular directive or process that I can follow that will allow my UI changes to be reflected on my production server without my users having to refresh the

How to refresh ASP .NET MVC page when hitting browser back button

丶灬走出姿态 提交于 2019-12-20 21:59:31
问题 I just found that when I click browser back button on any ASP .NET MVC page nothing happens and page is not going be updated. And only if you click F5 it will be updated only. The main problem that I do some changes of DOM of the page i.e. add table rows select radio-buttons and etc and when I go back to page by hitting browser back button I have see no changes. How it can be resolved for ASP .NET MVC 5? Thank for any clue... P.S. I have read http://forums.asp.net/t/1304752.aspx?how+to

How to refresh a page in a backbone application

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 08:35:27
问题 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? 回答1: Looking at the backbone.js source, it seems as though this

How to refresh the page after closing p:dialog

可紊 提交于 2019-12-19 03:31:52
问题 I've the below dialog: <h:form id="r1"> <p:commandButton value="Basic" type="button" onclick="PF('dlg1').show();" /> <p:dialog header="Basic Dialog" widgetVar="dlg1"> <h:outputText id="test" value="Welcome to PrimeFaces" /> </p:dialog> </h:form> How can I refresh the JSF page after closing the dialog? 回答1: The <p:dialog> supports the ajax close event. This only requires it being placed inside a <h:form> (on contrary to the general recommendation), so you need to make sure that it's already

Force a page refresh when page visited from back button

旧巷老猫 提交于 2019-12-18 05:56:34
问题 How can I force a page refresh of page 1 when a user returns to it from page 2 by pressing the back button? Are there vbscript or javascript approaches or is it down to set the 'no cache' somehow? 回答1: Set a cookie on page 2. If the cookie is detected on page 1, reload the page. 回答2: What about doing something like this? <script> if (document.referrer == "http://www.page2.html") window.location.reload(); } </script> Just throw that at the top of your page 1 and this should work. Update I also

navigator.geolocation getCurrentPosition not updating in Chrome Mobile

戏子无情 提交于 2019-12-18 01:13:29
问题 I have created a site (can be accessed at http://dev.gkr33.com) which is designed for a smartphone and attempts to use the navigator.geolocation api and grab your position via getCurrentPosition. This seems to work initially, however if you try to refresh the page it always brings back the last GPS position. I have added some debug information on the page which grabs the time of the getCurrentPosition return and after the initial positioning it always returns the same time (down to the

navigator.geolocation getCurrentPosition not updating in Chrome Mobile

淺唱寂寞╮ 提交于 2019-12-18 01:13:22
问题 I have created a site (can be accessed at http://dev.gkr33.com) which is designed for a smartphone and attempts to use the navigator.geolocation api and grab your position via getCurrentPosition. This seems to work initially, however if you try to refresh the page it always brings back the last GPS position. I have added some debug information on the page which grabs the time of the getCurrentPosition return and after the initial positioning it always returns the same time (down to the

How do I refresh the CSS for a DIV loaded with external content in JQuery Mobile

十年热恋 提交于 2019-12-14 03:25:36
问题 I have read all of your comments, but none of the solutions I read seem to work. I have a piece of Jquery code that gets some content from an external PHP script which updates a div in my application. After the new data is loaded, it doesn't have the Jquery Mobile styling. I've seen how some have used .page() or trigger("refresh"), etc... but none of that works to refresh an entire div. Here is my code and the portion of html in question: function getcontent(pg) { $("xyz").html(""); $.get(

Hard refresh website design

随声附和 提交于 2019-12-13 05:40:39
问题 I am developing a site, but every time I do a small change I have to perform a hard refresh in order to see the change. The obvious question here is that a user probably will never do a hard refresh, and so he/she will not see the effects immediately . Plus, sometimes when I change the stylesheet, without hard refresh the site looks like a mess. What can I do? 回答1: You can force the page not to cache by adding cache control meta tags: <meta http-equiv="Cache-Control" content="no-cache"> <meta

Page refresh after few seconds with entering username and password

≡放荡痞女 提交于 2019-12-13 03:57:26
问题 I need a vbscript which should open a page in IE, enter username and password, then keep on refreshing the page after few seconds. I have no idea of vbscript, but here is what I found after searching, it keeps on refreshing the page. doesnt seem to work, keeps on giving me error, object required. The username and password does have a value, I have just omitted it here. The error just comes up before the username could be entered. Call Main Function Main Set IE = WScript.CreateObject(