public marks

PUBLIC MARKS from greut with tags javascript & yahoo

March 2008

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.

September 2007

klauskomenda.com » Code » JavaScript Programming Patterns

from old-school to lazyness, time to relearn JavaScript ?

greut's TAGS related to tag javascript

accessibility +   ajax +   animation +   api +   Aria +   article +   bayeux +   behaviours +   benchmarks +   blog +   book +   bookmarklet +   business +   canvas +   chat +   closure +   code +   comet +   cometd +   content +   couchdb +   date +   design +   dev +   Erlang +   eval +   event +   events +   firebug +   firefox +   fix +   form +   functional +   github +   gjs +   gmail +   google +   greasemonkey +   hcard +   highlight +   history +   html +   html5 +   http +   ie +   jabber +   java +   js +   lazy +   leak +   library +   lint +   lowpro +   math +   mdc +   microformats +   microsoft. +   mozilla +   msie +   muc +   oop +   open +   OpenBook +   opensource +   opera +   operator +   pattern +   performance +   phone +   plugin +   presentation +   programmation +   programming +   prototype +   prototype. +   python +   rdf +   remote +   ruby +   search +   seed +   seo +   server +   singleton +   skype +   SpiderMonkey +   storage +   svg +   tommorris +   tool +   tools +   twitter +   web +   webkit +   xbl +   xhr +   xmpp +   y +   yahoo +   yui +