I want to store key/value pairs in URI's after the hash for use on the client side like so:
http://www.foo.com/index.html#foo=bar&baz=quux
Is there a pre-existing solution that already does this or should I roll my own? I'm already using JQuery so a JQuery solution would be particularly welcome.
My original idea was to use a regex, but that gets complicated, especially when you add the need to escape both keys and values.
EDIT: Let me clarify. I want to do something like this:
foo = hash.get('foo');
hash.set('bar','baz');