Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

CANEHDN

macrumors 6502a
Original poster
Dec 12, 2005
855
0
Eagle Mountain, UT
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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.