If you mean the querystring as in:
mysite.com?name=jonas&phone=12345 //note the ? instead of #

Then you can use this plugin (it will parse the querystring into a
hash like you want):
http://plugins.jquery.com/project/parseQuery

On Mar 15, 8:30 am, brian <[email protected]> wrote:
> On Sun, Mar 15, 2009 at 6:23 AM, Jonas <[email protected]> wrote:
>
> > I need some advice on working with the hash, are there any good
> > plugins or alike that I could use? The bestw ould be something like
> > mysite.com#name=jonas&phone=12345
>
> > Then I'd do something like
> > var myHash = getHashObject();
>
> > the object would then be soemthing like
> > {
> > name: 'jonas',
> > phone: 12345
> > }
>
> > And something to write to the hash
> > var myNewHash = {
> > name: 'donald',
> > phone: 54321
> > }
> > writeHash(myNewHash);
>
> > I guess there isn't anything exactly like that but something similiar
> > would be nice if anyone know something.
>
> That'd be a query string you're looking for, not a hash. Have a look
> at javascript's location object.
>
> http://www.google.com/search?hl=en&safe=off&rlz=1G1GGLQ_ENUS271&q=jav...

Reply via email to