[thelist] JavaScript and GET name value pairs

.jeff jeff at members.evolt.org
Wed Dec 18 14:08:01 CST 2002


tom,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Tom Dell'Aringa
>
> I have a need to pull some GET name/value pairs using JS
> (long story, I have no choice). I've been struggling
> with some code I found on the net and wondered if anyone
> here has done this.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

i see you've gotten lots of code samples to help with this, but i thought
i'd add mine into the mix because i originally wrote it as an alternative to
all the bulky or inflexible code samples to accomplish the same task.

http://members.evolt.org/jeff/code/js_url_variables/index.cfm

you would reference the url variables from your example like this:

url.food or url['food']
url.drink or url['drink']

enjoy,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list