jquery - Track refresh of a browser -


I have a web application that was created using MVC. Now after each page is loaded, each internal activity is done using jquery ajax data loading. So I'm replacing data using Ajax again in the same container. Now if the user wants to click on the browser's refresh button, then I want to load the same data that is loading with the previous ajax call. The entire URL does not refresh using the url mentioned in the browser URL (because the data that will be returned will load the page loaded for the first time). Is it possible to do anyway, using javascript or jquery or any server-side methods? I am using .NET MVC 4.0 in the application.

There are possible solutions,

  1. HTML5 has introduced history. PushState () & amp;

  2. Manually save the status of each page / ajax call using JavaScript in the JavaScript and on page load, which .

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -