My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
AnchorHandler  
Updated Feb 4, 2010 by hhh...@gmail.com

jquery.anchorhandler.js

Author Copyright (c) 2007-2008 Maxime Haineault (haineault.com)
License MIT License

This jQuery plugin allow to use regular expressions to attach events on url hanchor.. it's less complicated and more useful than it sounds :)

It's a clever and neat way to handle custom URLs that I borrowed from django's clever URL dispatcher.

Example

$.anchorHandler
    .add(/\#show\-something/,   function(){ /* ..*/  })
    .add(/\#trigger\-event/,    someEvent)
    .add(/\#/,                  smoothScrollToLink);
Comment by mediacept, Dec 17, 2011

klmmmml

Comment by nelsonpo...@gmail.com, Dec 22, 2011

uiououioiuo


Sign in to add a comment
Powered by Google Project Hosting