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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about encoding

Status
Not open for further replies.

4345487

Programmer
Dec 31, 2002
132
US
Hi,

I try to do a window.open passing two variables the problem the I'm having is that if one of the variables contains a & character the open request does no work I try to do a escape in the url but still does not work any ideas

Thanks
 
Can you show us the code you have? Escaping the ampersands in the URL should work fine... Something like this:

Code:
var winHandle = window.open('myUrl.html?foo=bar&myUrlParams=' + escape('newPage.html?a=1&b=2'), 'myWindowName', '');

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top