F
F
Fedcomp2011-09-24 20:53:51
JavaScript
Fedcomp, 2011-09-24 20:53:51

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

7 answer(s)
O
Oleg Yakovenko, 2011-09-24
@Apx

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

P
Petrusha Ukropov, 2011-09-24
@artishok

jquery.pjax
jquery.address
jquery.router
jquery.ajaxy
Google can find examples and descriptions of how to use

A
Anatoly, 2011-09-24
@taliban

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

D
Denis Medved, 2011-09-24
@BuCeFaL

Here it is https://github.com/ckald/jquery-pjax if I didn't mix anything up.

N
niko83, 2011-09-24
@niko83

Here is what you need jquery history plugin
tkyk.github.com/jquery-history-plugin/

R
Roman, 2011-09-24
@lampa

habrahabr.ru/qa/10376/ maybe this?

M
Mikhil Inozemtsev, 2011-09-25
@Keler

github.com/mtrpcic/pathjs here's more)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question