Ajax & Url

Discussion in 'Web Design and Development' started by CANEHDN, Jan 20, 2009.

  1. CANEHDN macrumors 6502a

    CANEHDN

    Joined:
    Dec 12, 2005
    Location:
    Eagle Mountain, UT
    #1
    I currently have a site run mostly by AJAX. The whole site uses one div and that is reloaded with the different content. Every time a link is clicked the URL changes from http://www.thesite.com/#customers to http://www.thesite.com/#admins this is just an example. If the user clicks the back button on the page and the url changes from #admins back to #customers but the div on the page remains with the #admins content. Is there a way for me to know that they've clicked the back button so the content can reload the div to the correct content. Google mail is a perfect example of how this works. If you click Inbox the URL changes to #inbox and then Spam is #spam. If they clicked the back button the URL changes back to #inbox and the content changes on the page but the page doesn't actually refresh.
     
  2. CANEHDN thread starter macrumors 6502a

    CANEHDN

    Joined:
    Dec 12, 2005
    Location:
    Eagle Mountain, UT
    #2
    Nevermind. I found exactly what I was looking for. Google has something called Really Simple History that does exactly what I want. I love google.
     

Share This Page