?
Solved

window.location.reload is not working in Chrome

Posted on 2011-09-09
5
Medium Priority
?
5,073 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

762 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