By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,395 Members | 2,541 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,395 IT Pros & Developers. It's quick & easy.

Problem in open PopUp window

P: 7
[HTML]<SCRIPT language=JavaScript type=text/javascript>
<!--

function open1(URL) {
popupWin = window.open(URL, 'popup', 'dependent=0, height=400,width=480,screenX=200,left=200,screenY= 200,top=10,channelmode=0,dependent=0,directories=0 ,fullscreen=0,location=0,menubar=0,resizable=1,scr ollbars=1,status=0,toolbar=0', 'launcher');
}
//-->
</SCRIPT>




<a href=\javascript:open1(\'/cgi-bin/query/ref_order_details.pl?ordernumber=123&type=rr&name= Name\');\>Click Here</a>
[/HTML]

Here,If I pass one parameter value in the url (Ex: ordernumber Only) its working.But if i pass more than one value ( Ex:ordernumber And type And name)it gives error.

Is any Idea.
Thank u.
Aug 8 '07 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
Please post code using CODE tags. Thanks!

What does the error message say?
Aug 8 '07 #2

P: 7
Thank u For your reply,

The Error is ---> Expected ').

I got the solution For this problem ,This Error i am getting only when i pass any one of parameter with space (Ex; name=hello world) .

Is any Solution For sending parameter value with space ,

Thanks,
Aug 8 '07 #3

acoder
Expert Mod 15k+
P: 16,027
Thank u For your reply,

The Error is ---> Expected ').

I got the solution For this problem ,This Error i am getting only when i pass any one of parameter with space (Ex; name=hello world) .

Is any Solution For sending parameter value with space ,

Thanks,
Use encodeURIComponent on each parameter.
Aug 8 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.