[jQuery] Re: Listen for location anchor change?

2008-09-26 Thread h3
I've worked on a clean solution for this a while ago: http://haineault.com/blog/37/ The examples above might not be up to date since the code has changed a bit since then: http://code.google.com/p/jquery-utils/wiki/AnchorHandler Code: http://code.google.com/p/jquery-utils/source/browse/trunk/src

[jQuery] Re: Listen for location anchor change?

2008-09-24 Thread ricardobeat
Implement it yourself: function onhashchange(){ //do stuff }; $('a').click(function(){ if (this.href.indexOf('#')+1) onhashchange(); }); - ricardo On Sep 24, 5:33 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote: > I think he's looking for something more along the lines of IE8's > "onhashc

[jQuery] Re: Listen for location anchor change?

2008-09-24 Thread mario
Thank you all, yes I was looking for something along the lines of what Aaron said. Well at least now I'm certain it "can't be done"... On Sep 24, 3:33 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote: > I think he's looking for something more along the lines of IE8's > "onhashchange" event[1]. Unf

[jQuery] Re: Listen for location anchor change?

2008-09-24 Thread Aaron Heimlich
I think he's looking for something more along the lines of IE8's "onhashchange" event[1]. Unfortunately, this is something that, to my knowledge, no other browser implements. [1] http://msdn.microsoft.com/en-us/library/cc288209(VS.85).aspx On Wed, Sep 24, 2008 at 3:27 PM, Andy Matthews <[EMAIL PRO

[jQuery] Re: Listen for location anchor change?

2008-09-24 Thread Andy Matthews
Javascript has the built in property location.hash that will return the value of the anchor along with the # sign. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mario Sent: Wednesday, September 24, 2008 3:09 PM To: jQuery (English) Subje