Thanks Robert
I will try this code
-----Original Message-----
From: =22Robert Nyman=22 <robert.nyman=40chello.se>
Sent: Thursday, January 16, 2003 10:23 AM
To: javascript=40p2p.wrox.com; robert.nyman=40chello.se
Subject: =5Bjavascript=5D SV: Using ASP in JavaScript ?
You have to set the ProdID somewhere.
Here are a couple of examples:
<%
ProdID =3D Request.QueryString(=22ProdID=22);
%>
<script language=3D=22JavaScript=22>
function orderdetails()=7B
newwind =3D
window.open(=22y.asp?id=3D<%=3DProdID%>=22,=22PrinterFriendly=22,=22left=3D
20, top=3D20,
width=3D650, height=3D500, toolbar=3D1, status=3D1, scrollbars=3D1,
resizable=3D1=22);
=7D
</script>
<a href=3D=22javascript:orderdetails();=22>open new window<a>
Or:
<%
ProdID =3D Request.QueryString(=22ProdID=22)
%>
<script language=3D=22JavaScript=22>
function orderdetails(strProdID)=7B
newwind =3D window.open((=22y.asp?id=3D=22 +
strProdID),=22PrinterFriendly=22,=22left=3D20, top=3D20, width=3D650,
height=3D500,
toolbar=3D1, status=3D1, scrollbars=3D1, resizable=3D1=22);
=7D
</script>
<a href=3D=22javascript:orderdetails(=27<%=3DProdID%>=27);=22>open new
window<a>
/Robert
-----Ursprungligt meddelande-----
Fr=E5n: farsk=40snc-lavalin.com =5Bmailto:farsk=40snc-lavalin.com=5D
Skickat: den 16 januari 2003 15:02
Till: javascript
=C4mne: =5Bjavascript=5D Using ASP in JavaScript ?
In =27x.asp=27 page , I want to add a new link, this link open a new
window
(called y.asp)
I want to pass a variable from x.asp page to y.asp page, this variable
called =27id=27
I used these code but it didn=27t work =21=21=21
* here is the code I use in x.asp page :
-------
>> the javascript code is :
<script language=3D=22JavaScript=22>
function orderdetails ()
=7B
newwind =3D window.open(=22y.asp?id=3DProdID=22,=22PrinterFriendly=22,=22le
ft=3D20,
top=3D20, width=3D650, height=3D500, toolbar=3D1, status=3D1, scrollbars
=3D1,
resizable=3D1=22);
=7D
</script>
>> the html code is :
<a href=3D=22javascript:orderdetails();=22>open new window<a>
------
* here is the code I have in y.asp page :
------
<%
idis =3D Request(=22id=22)
%>
------
leave-javascript-2939381E=40p2p.wrox.com.