passing values to pop-up window. Please helpt 
Author Message
 passing values to pop-up window. Please helpt

How can I pass the values from asp page to a pop-up window??? I have tried
to this like 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:18:29 GMT  
 passing values to pop-up window. Please helpt
The client can't "see" the recordset fields directly, you have to embed the actual values in the
client side script code you build and return to the browser...

<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>

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--

Quote:

> How can I pass the values from asp page to a pop-up window??? I have tried
> to this like 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');
> }
> </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:59:17 GMT  
 passing values to pop-up window. Please helpt
thanks for your help Michael,
I am still getting the error saying that: "Expected ';'
Right after this line: passit = "question.asp?id=" + <%=RS("id")%> +
"&name=" + <%=RS("name")%>;
Do you know why?????? thanks so much for your help


Quote:
> The client can't "see" the recordset fields directly, you have to embed

the actual values in the
Quote:
> client side script code you build and return to the browser...

> <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>

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --

> Please do not email questions - post them to the newsgroup instead.
> --




Quote:
> > How can I pass the values from asp page to a pop-up window??? I have
tried
> > to this like 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
Quote:
> > s=no,resizable=no,width=500,height=335');
> > }
> > </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 04:14:12 GMT  
 passing values to pop-up window. Please helpt
passit = "question.asp?id=" + <%=Server.UrlEncode(RS("id"))%> + "&name=" +
<%=Server.UrlEncode(RS("name"))%>;

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--

Quote:

> thanks for your help Michael,
> I am still getting the error saying that: "Expected ';'
> Right after this line: passit = "question.asp?id=" + <%=RS("id")%> +
> "&name=" + <%=RS("name")%>;
> Do you know why?????? thanks so much for your help



> > The client can't "see" the recordset fields directly, you have to embed
> the actual values in the
> > client side script code you build and return to the browser...

> > <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');
> > }
> > </script>

> > --
> > Michael Harris
> > Microsoft.MVP.Scripting
> > --

> > Please do not email questions - post them to the newsgroup instead.
> > --



> > > How can I pass the values from asp page to a pop-up window??? I have
> tried
> > > to this like 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');
> > > }
> > > </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 05:10:48 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. passing value to pop-up window. Please help

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

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

4. downloading file without pop-ups

5. Pop-ups in MS Office

6. pop-ups

7. Pop-ups in TreeView

8. Pop-ups

9. Pop ups

10. control enumeration pop-ups at design time

11. Pop Ups

12. Please Help - Passing SELECT values to ASP

 

 
Powered by phpBB® Forum Software