Hello? Can anyone help me out here?


-----Original Message-----
From: mochikit@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason Bunting
Sent: Friday, January 05, 2007 3:18 PM
To: mochikit@googlegroups.com
Subject: [mochikit] parseQueryString bug?



If the url of the page is:

   http://www.foo.com/bar.aspx?baz=blah#bottom

And the code is:

   var args = parseQueryString(document.URL);
   var paramValue = args.baz;

At this point paramValue is equal to "blah#bottom" instead of just "blah"
as
I would expect; the fragment identifier is included when present; is there
another way to do this? Is my use of document.URL incorrect? Currently I
am
working around this with:

   parseQueryString(document.URL.split("#")[0]);

Thanks,
Jason Bunting

_________________________________________________________________
Communicate instantly! Use your Hotmail address to sign into Windows Live
Messenger now. http://get.live.com/messenger/overview


>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.6/617 - Release Date: 1/5/2007
11:11 AM


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.6/617 - Release Date: 1/5/2007
11:11 AM



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to