SitePoint Sponsor

User Tag List

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

    Back Button for Ajax

    Anyone has code to program a back button for a page that uses html5 and AJAX?

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2009
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ajax or not, Javascript window.history.back() should be good enough for back?
    http://www.w3schools.com/jsref/met_his_back.asp

  3. #3
    SitePoint Enthusiast Anthony.Barnes's Avatar
    Join Date
    Aug 2011
    Location
    Canberra, Australia
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this is what you are after:

    http://benalman.com/projects/jquery-bbq-plugin/

    Browser history for hash changes (you could probably pull it apart to remove the jQuery specific things if you wanted it to work without jQuery).


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
  •