Interested in Sitecore?

Apply for our Mentorship Program by emailing your resume to chris.williams@techguilds.com. Check out our ASP.NET QuickStart and C# QuckStart Libraries. Below is my latest articles.

Friday, May 22, 2009

Forcing a Refresh from JavaScript

I found a good article on how to do this check it out at this link:

http://devel.lubong.com/2007/06/24/javascript-how-to-force-page-to-reload/

They are using the window.location.reload(true); much like I am in my code.
However I did not realize why we use true instead of false. but he explains it so well:

The reload method accepts a boolean value, which, when it is true, causes the page to always fetch document from the server. When none is specified, it defaults to false, which may reload the page from its cache.

The issue I am having and if any of you know the answer is that in firefox on the second call to this I get a popup that says:

To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier.


If you have any ideas on why please post them to this blog posting.