469,336 Members | 5,570 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

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 1988
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 suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.