I’m programming an Ajax-heavy site like Gmail. Everytime someone goes to a new section, I’ll update the address bar. An example use case is:
site.com/allWithinThisPage.php#comments/page1
site.com/allWithinThisPage.php#comments/page2
site.com/allWithinThisPage.php#comments/page3
site.com/allWithinThisPage.php#tutorials/page1
…
If someone were to use their browser’s back or forward button, I will see the address bar updating correctly, but nothing will happen because I am not listening on that event. I’ve read that I can just periodically poll window.status to see if it has changed, but I’d like to hear if you have any alternative event driven approaches. My site already requires the user to run a processor intensive video transcoding plugin and I don’t want to add on extra processing by running a poller.