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
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
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
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
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
5 matches
Mail list logo