passing value to pop-up window. Please help 
Author Message
 passing value to pop-up window. Please help

How can I pass the values from asp page to a pop-up window.  I have tried
this but I got an error.

<script LANGUAGE="JavaScript">
function OpenWindow(id,name){
passit = "question.asp?id=" + RS("id") + "&name=" + RS("name");
window.open(passit,'','toolbar=no,location=no,status=no,menubar=no,scrollbar
s=no,resizable=no,width=500,height=335');

Quote:
}

</script>
'
'
Response.Write "<td width=""4%"" align=""middle""><P><a
href=""javascript:OpenWindow();""><IMG
SRC=""images/pop.gif""></a></P></font></td>" & VbCrLf


Sat, 23 Aug 2003 02:19:41 GMT  
 passing value to pop-up window. Please help
Try this:

<script LANGUAGE="JavaScript">
function OpenWindow(id,name){
passit = "question.asp?id=<%=RS("id")%>&name=<%=RS("name")%>";
window.open(passit,'','toolbar=no,location=no,status=no,menubar=no,scrollbar
s=no,resizable=no,width=500,height=335');

Quote:
}

</script>

----------
Randy Hunt
MCP+I / MCSE

visit www.wshscripting.com



Sat, 23 Aug 2003 07:57:36 GMT  
 passing value to pop-up window. Please help
I got an error. Even I tried this way. Any other ideas? thanks for your
help.

passit = "question.asp?id=" + <%=Server.UrlEncode(RS("id"))%> + "&name=" +
<%=Server.UrlEncode(RS("name"))%>;


Quote:
> Try this:

> <script LANGUAGE="JavaScript">
> function OpenWindow(id,name){
> passit = "question.asp?id=<%=RS("id")%>&name=<%=RS("name")%>";

window.open(passit,'','toolbar=no,location=no,status=no,menubar=no,scrollbar
Quote:
> s=no,resizable=no,width=500,height=335');
> }
> </script>

> ----------
> Randy Hunt
> MCP+I / MCSE

> visit www.wshscripting.com



Sun, 24 Aug 2003 04:54:21 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. passing values to pop-up window. Please helpt

2. Pass values to pop-up window....still having question

3. Please Help - Passing SELECT values to ASP

4. Passing Values between Frames... please Help

5. Pass Parameter from popup window to mather window..

6. Pass values from child window to parent (Help)

7. downloading file without pop-ups

8. PLEASE HELP PLEASE HELP PLEASE HELP

9. Please test my new popup window.

10. Passing values between windows

11. Problem passing values to a form from a popu window

12. Pass values thru windows.

 

 
Powered by phpBB® Forum Software