Solved

window.location.reload is not working in Chrome

Posted on 2011-09-09
5
4,497 Views
Last Modified: 2012-06-27
I have a popup and when i update the database I need to refresh the page

So use the window.location.reload(true); and it works in ie, firefox

However, does not work in chrome

0
Comment
Question by:erikTsomik
  • 3
  • 2
5 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 36512446
0
 
LVL 19

Author Comment

by:erikTsomik
ID: 36512450
so is there no solution?
0
 
LVL 82

Expert Comment

by:leakim971
ID: 36512475
check comment 5, you may want to implement a similar solution
0
 
LVL 19

Author Comment

by:erikTsomik
ID: 36512557
is there aNY OTHER alternatives. so i have a page (also a popup) on the page I click the link and it opensup a new popup with the form after update i click the close button and reload the page
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 36512908
you want only refresh the page? or post new data?

IF THERE'S NO LOGIC ON THE SERVER SIDE DOING SOMETHING WHEN POSTING THE DATA (it's most of time not the case)

document.forms[0].submit();
or jQuery equivalent : $("form").submit();

or try : location.href = location.href;
or again : location.href + ((location.href.indexOf("?")>0)?"&rdmtime=":"?rdmtime=") + new Date().getTime();
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now