Answer the question
In order to leave comments, you need to log in
Plugin for jquery - routing via hash in links (#)?
Hello habr.
I saw in two articles a link to a plugin that allowed making routes through a hash in the url (#) and attaching handler functions to these routes.
Unfortunately, I don’t remember the articles, and I couldn’t find the plugin either.
Does anyone know what plugin it is?
Answer the question
In order to leave comments, you need to log in
path.js is simple as hell. Works with hashes. Hangs lisners on the pre-post transition to another hash, well, and just an action during the transition. 116 lines of raw code. Works with a bang. The best I've seen. There are of course a lot of other things but even ajaxy didn't impress me that much. too heavy
jquery.pjax
jquery.address
jquery.router
jquery.ajaxy
Google can find examples and descriptions of how to use
I bet you will spend more time on searches than on implementation? :) This is really not a complicated script:
1. timeout for hash lookup
2. location.hash.match( new RegExp(route) );
3.!!!
4. PROFIT!
One drawback - routes are only like regulars, but business for 20 minutes
Here it is https://github.com/ckald/jquery-pjax if I didn't mix anything up.
Here is what you need jquery history plugin
tkyk.github.com/jquery-history-plugin/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question