Solved

refresh action

Posted on 2014-09-09
2
106 Views
Last Modified: 2014-09-23
by using the location.reload in jquery, the session is not updated unless I manually enter the reload URL in browser and press Enter to reload the page.

In this case, how can I simulate the action above using the jquery ?
I tried with location.reload, location.href , window.open.. etc ,, but to no avail
0
Comment
Question by:heng tang
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 250 total points
ID: 40313143
Use
location.reload(true);

Open in new window

0
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 250 total points
ID: 40313324
try this :

location.href = location.href + (location.search?"&t":"?t") + new Date().getTime();

Open in new window

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
object passed as reference 1 20
JavaScript waiting 14 66
Adding a Li to a UL after a specified Li contents 2 42
form button worked now it doesnt anymore 9 36
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

929 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

8 Experts available now in Live!

Get 1:1 Help Now