public marks

PUBLIC MARKS from greut with tags yui & history

02 March 2008 14:00

How to build a cross-browser history management system - Tales from the Evil Empire

The main trick that history managers use is to have the browser believe the user navigated to a new url without the current page and all its JavaScript and DOM state being thrown away. The only part of the url that enables such a thing is the hash part. The hash part is what comes at the end of the url after a pound (#) sign. The original intent of this part of the url was to allow for navigation inside of the document. You would put a special named, href-less anchor tag in your document, and then navigating to #nameOfTheAnchor would just scroll the anchor into view. The page doesn't get reloaded, but it does enter the browser history.

YUI Browser History Manager does that for you, but lack of documenting how it works under the hood.

greut's TAGS related to tag yui

accessibility +   ajax +   api +   blog +   customevent +   design +   dhtml +   fonts +   history +   iphone +   javascript +   js +   jsquery +   markaidanthomasismyhero +   microsoft. +   osx +   presentation +   video +   widget +   yahoo +