3 ms·
You can make back and forward work by changing the url hash, and if you poll the hash and adjust the content accordingly, you can make unique urls work as well.
by schwabacher 15y ago
You can make back and forward work by changing the url hash, and if you poll the hash and adjust the content accordingly, you can make unique urls work as well.
I think most javascript frameworks make this pretty easy, I am most familiar with Backbone's Router (recently renamed from Controller)
See: http://documentcloud.github.com/backbone/#Router http://documentcloud.github.com/backbone/#Router
In the future, the HTML5 history API should make this even simpler. People definitely do screw this up though.. I don't think the recent Gawker/Gizmodo redesign did this initially, and it seemed like that was one of the reasons people really hated it.