< % if lcAction = "Add" then dim classReg,urlReg,urlValue classReg = Request.Form("cboClasses") urlReg = Request.Form("hUrl") urlValue = "hClass=" &classReg& "&hUrl=" &urlReg Response.Write "<script language=javascript>window.open(displayUrl.asp?"&urlValue&",null,'height=200,width=600,left=200,top=400,scrollbars=yes,menubar=no')</script>" % >I get an error: expected ':' and the line number is the above "response.write". I also need to pass a url string that has // in the string and I think that is causing a problem also.
<script language=javascript>window.open(displayUrl.asp?hClass=Advance Java Apps&hUrl=http://java.sun.com/developer/onlineTraining/,null,'height=200,width=600,left=200,top=400,scrollbars=yes,menubar=no')</script>If I add single quotes at the url to open (like: 'displayUrl.asp?'), I get the error: expected ')'.