skelleex — 2011-11-24T18:31:28-05:00 — #1
I am now learning how to use jquery to cache ajax requests. I would like to know the answers to the following questions:
How can I go back to a cached ajax request? Lets say I made an ajax request which brought up new content and I want to go back to the previous ajax request (which was done initially) by pressing the back button how can this be done?
In using ajax cacheing how can I ensure that when new content is added that the cache pages are replaced?
paul_wilkins — 2011-11-26T05:15:47-05:00 — #2
You can update the hash tag every time you are at a state that you want to be able to go back to.
How it would work is when the page is loaded with a hash tag, the page request the information that it needs, using the hash tag as a guide for what info to get.
skelleex — 2011-11-26T05:34:24-05:00 — #3
excellent do you have any good tutorials on how to do this with jquery ajax. Note that some states I may want to change need parameters so if the tutorial covers that also that would be great.
paul_wilkins — 2011-11-26T05:36:28-05:00 — #4
skelleex — 2011-11-26T05:42:37-05:00 — #5
thanks alot will take a look at this now.