Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querystring

Status
Not open for further replies.

tbubbs

Programmer
Mar 30, 2001
26
CA
HI,
I am trying to pass a variable using a querystring in a javascript function. This is how my code looks,
"page.asp?varname="+jsname;
Doing this tells me that the varname is undefined. But I do an alert and the proper info shows. It is just not passing the info through the querystring.
Any ideas??

Thanks, in advance,
T
 
Depends where you are putting this code, if it is in the href itself it will not work, try using a function to sew together the string pieces into the full URL.
 
Thanks for the tips, I was able to step my way through it a bit better than I was originally and figured things out.
Thanks again,
T (-:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top