The querystring refers to the name/value pairs following the ?
The hash follows the # and is an anchorname; it's not conventional to
load it up with name/ value pairs, and in fact would result in an
invalid anchorname:
you'd be targeting an element named "name=jonas&phone=12345" which
wouldn't be
On Sun, Mar 15, 2009 at 1:43 PM, T.J. Crowder wrote:
>
> @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...
mysite.com#name=jonas&p
@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 se
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 wrote:
> On Sun, Mar 15, 2009 at 6:23 AM,
On Sun, Mar 15, 2009 at 6:23 AM, Jonas 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
5 matches
Mail list logo