jon24422531
Technical User
Hi
I am not sure whether this is in the correct forum, but I have an ASP page with various links on it and one of these I would like to open a "floating" page using information from a form. So far I have this:
I then open the "remote Window" (CustAddressLabel) with this in the ASP:
But the relevant fields are empty..
How can I pass the Request.Form data across to this window? If I forget the JavaScript and just go for a normal link it works, so which bit have I screwed up?
Thanks.
Jonathan
I am not sure whether this is in the correct forum, but I have an ASP page with various links on it and one of these I would like to open a "floating" page using information from a form. So far I have this:
Code:
<SCRIPT LANGUAGE="JavaScript">
<!--
function showRemote() {
self.name = "Parent_Window";
var windowprops = "toolbar=0,location=0,directories=0,status=0, " +
"menubar=0,scrollbars=0,resizable=0,width=400,height=500";
Openwindow = window.open("CustAddressLabel.asp", "remote", windowprops); //opens remote win
}
-->
</SCRIPT>
.........Form....
<input type="button" value="Print Address" onClick="showRemote();">
Code:
Company = Request.form("Company")
Add1 = Request.Form("Add1")
Add2 = Request.Form("Add2")
Add3 = Request.Form("Add3")
Add4 = Request.Form("Add4")
PostCode = Request.Form("PostCode")
.......... Fields...
<td
style="vertical-align: top; font-weight: bold; color: rgb(204, 0, 0);">Company:<br>
</td>
<td style="vertical-align: top;"><b><input name="Company" type="text" value="<%=Company%>"> <br>
</b></td>
......Etc...
How can I pass the Request.Form data across to this window? If I forget the JavaScript and just go for a normal link it works, so which bit have I screwed up?
Thanks.
Jonathan