Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any javascript libraries for working with hashbang/shebang (#!) urls?

With all the negative press over Twitter and Gawker's use of hashbang urls I'm having a very hard time finding any examples/libraries for how to actually use them.

I'd like to use hashbang urls in a javascript carousel on our website so we can link directly to a specific page of the carousel.

Are there any good cross-browser libraries or examples (preferably non-jQuery, since we use Prototype) for both pushing new urls to the page location and for parsing the url on page load?

like image 354
ChiperSoft Avatar asked Feb 16 '11 19:02

ChiperSoft


2 Answers

We've been working on a library that does URL route mapping: https://github.com/OpenGamma/RouteMap if you're still looking for one.

like image 76
afshin Avatar answered Oct 22 '22 02:10

afshin


Sammy.js uses them to create handlers like the ones used in Sinatra.

like image 23
ebaxt Avatar answered Oct 22 '22 01:10

ebaxt