you shouldn't bother doing this by yourself. there are a few good solutions for mootools. my biased opinion would obviously send you to my own HistoryManager <http://mootools.net/forge/p/historymanager> on the Forge, but there is also digitarald's (also history-mangaer - google it) and there is also a very nice onhashchange implementation by Sanford (i think). if you look back a week or so on the list i think you'll find a message listing them all.
On Fri, Jul 2, 2010 at 8:10 PM, brook <[email protected]> wrote: > happy friday all - > > quesiton. i have ajax page transitions and i´m wanting to enable my > back button -- the solutions i´ve seen either seem to very browser > dependent or do something like > > document.location.hash = "#"+"newpagehash" > > and then periodically check the windows hash to see if it has > changed. > > so my question is this... i have no idea really how much calling a > simple periodical weights on your cpu... i know i can use things like > firebugs profile function but truth is i dont have any feeling how to > judge its output - whats fine and what is bad? > > does anyone have (or have a link to) advice or guidelines on this > subject? > would checking for a hash change every ... 250 or 500ms be overkill? > are there better ways to handle browser back buttons (in some cross > browser way)? > > thanks, > brook > -- Arieh Glazer אריה גלזר 052-5348-561 5561
