public marks

PUBLIC MARKS with tags yui & history

March 2008

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

by greut

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.

February 2007

PUBLIC TAGS related to tag yui

ajax +   browser +   history +   javascript +   microsoft. +   navigation +   yahoo +  

Active users

greut
last mark : 02/03/2008 14:00

camel
last mark : 26/02/2007 09:56