@brian, @mkmanning: FWIW, looked to me from his example like he really did mean hash (what some use as a synonym for the anchor portion of the URI), not query string. Perhaps he's doing some history stuff... -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available
On Mar 15, 5:34 pm, mkmanning <michaell...@gmail.com> wrote: > 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 <bally.z...@gmail.com> wrote: > > > On Sun, Mar 15, 2009 at 6:23 AM, Jonas <jonas.sjob...@gmail.com> 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... > >