[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

window.location.reload is not working in Chrome

Posted on 2011-09-09
5
Medium Priority
?
5,272 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Suggested Courses

650 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