Solved

refresh action

Posted on 2014-09-09
2
105 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have answered several questions lately that were solved utilizing the power of jQuery's AJAX functions, so I thought I would write an article demonstrating the ease of use. Why should I use jQuery as opposed to regular JavaScript? Now I know…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
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)

743 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

15 Experts available now in Live!

Get 1:1 Help Now