I'm using Ben Alman's jQuery
hashChange
event plugin.
the hash part looks like this:
#x=1&y=2&z=3
I already have functions that parse it getHashPart(key)
and setHashPart(key)
.
I would like to have a function that would allow to register with the change of only a specific part of the hash. I would use it as such (I guess...):
$(window).hashchange('x',function(new_value_of_x) {do something x related;});
$(window).hashchange('y',function(new_value_of_y) {do something y related;});
How would I register such a function with jQuery? anything similar exists?
Thanks!