Isn't that a bit of an overkill? I'm guessing it would be more performant when attaching the hash checker to document.body.onclick– so at least the checker is fired when needed instead of polling endlessly.

On 9 Sep 2009, at 07:20, ryan wrote:


I regularly check the hash with a periodical function, every
100-200ms, which then processes what to do if the hash changes.

On Sep 9, 5:34 am, Jon Hancock <[email protected]> wrote:
I'm new to mootools. I/mm looking for techniques for handling changes
to url hash changes.  I'm assuming my urls will look something like
this:

myapp.com/book/123
myapp.com/book/123#page1
myapp.com/books#search_tags=tag1;tag2;page=3

I'm flexible in how I handle the structure of the urls, but I do know
I need to be able to respond to event when the url and/or hash
changes.

What do others do?

thanks, Jon

Reply via email to