Skip to: Content | Navigation | Footer
one must pass through knowledge and arrive at simplicity
Once again an interesting problem came up. Simon pointed out that it wasn't possible to link to specific functions in the jQuery API because of all the JS. Hmmm ... chewy.
My solution uses Mikage's history plugin, which binds events to url hash targets instead of directly to DOM events. This allows you to use those urls as shortcuts to the events.
The hash I was in the form [function_name](_[param_name])*, e.g. each_fn, load_url_params_callback. '$' and '.' can be in id's so I replaced all occurances of those with underscores.
In order to tie those hashes into the DOM, I also changed the XSLT so that a function's LI had the hash as it's id, and the url of the function links used that hash. Once that was done, I was able to tie the history plugin to the links so that:
Someone was looking for a mouse gestures plugin on the jQuery list today. It seemed like an interesting problem, so I had a go at it. Here is the file by the way.
$().gesture(handler,buffer,onchange):
Blue will display the gesture once it is finished.
Green will display the gesture as it created
Red triggers one of two functions depending on the gesture - RDLU or LDRU.
Yellow will output the gesture and the content of the originating element.
Welcome to my website.