471,887 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

Problems passing multiple variables with javaScript

Hi, I'm having a problem passing a variable through a URL because the
variable is supposed to hold a URL that has a variable of its own.
Here is an idea of what I'm trying to do:
href="javascript:
newWin('/vcrc/exitvcrc.jhtml&newURL=http://www.something.net/default.asp?sponID=ETC','NowLeaving','420',
'200', 'no', 'auto','no');"
So, pretty much, the page I'm sending the variable to think there's two
variables (newURL and sponID), but sponID is part of the URL.
I'm hoping this is an easy question.
Any help would be appreciated.
Thanks.
Brian Munz

Jul 23 '05 #1
2 2039
Actually, the correct URL is
href="javascript:newWin('/vcrc/exitvcrc.jhtml?newURL=http://www.something.net/default.asp?sponID=ETC','NowLeaving','420',
'200', 'no', 'auto','no');"

Jul 23 '05 #2
br********@gmail.com wrote:
Hi, I'm having a problem passing a variable through a URL because the
variable is supposed to hold a URL that has a variable of its own.
Here is an idea of what I'm trying to do:
href="javascript:
newWin('/vcrc/exitvcrc.jhtml&newURL=http://www.something.net/default.asp?sponID=ETC','NowLeaving','420',
'200', 'no', 'auto','no');"
http://jibbering.com/faq/#FAQ4_24
So, pretty much, the page I'm sending the variable to think there's two
variables (newURL and sponID), but sponID is part of the URL.


Escape the ?, the = sign or have the exitvcrc.jhtml page do a re-direct
to the appropriate destination and change the way you pass the variables.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ed | last post: by
2 posts views Thread by Richard | last post: by
3 posts views Thread by domeceo | last post: by
4 posts views Thread by Reply Via Newsgroup | last post: by
10 posts views Thread by Danny | last post: by
4 posts views Thread by allanrodkin | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.