Solved

window.location.reload is not working in Chrome

Posted on 2011-09-09
5
4,873 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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

705 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