SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2011
    Location
    Trinidad and Tobago
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question: Ajax cache pages history

    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?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by skelleex View Post
    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?
    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.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2011
    Location
    Trinidad and Tobago
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by skelleex View Post
    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.
    http://ajaxpatterns.org/Unique_URLs
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    SitePoint Zealot
    Join Date
    Aug 2011
    Location
    Trinidad and Tobago
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by paul_wilkins View Post
    thanks alot will take a look at this now.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •