How do I check if my popup window is open?
If it is already open, I want to pass a url.variable to it and keep any existing values still on the page.
Here is some code for the parent form.
<td>img src="Picture.gif" alt="" border="0" onClick="zoomToggle('100px','100px','200px','200px',this);"><br>Product Name One<br>
<A HREF="ShoppingCart.htm?ItemNum=12345&ItemDesc=ProductNameOne" target="_blank">Add To Basket</a>
</td>
Here is some code for the child form:
<body onLoad="addRow()">
<form action="ShoppingCart.htm" method="post" name="ShoppingCart.htm" id="ShoppingCart.htm">
<table border="1" cellspacing="1" cellpadding="1" bgcolor="##C6BBBB">
<th>Below are the item(s) you've selected:</th>
<tr><td>ITEM</td><td>NUM</td><td>QTY</td></tr>
<output>
<tr>
<td><input type="text" name="ItemDesc" value="#url.ItemDesc#"></td></output><td><output>#url.ItemNum#</output></td><td><input type="text" name="#url.ItemNumQty#" value="1" size="3" maxlength="10"></td>
</tr>
</table>
</form>
</body>
Thanks!
If it is already open, I want to pass a url.variable to it and keep any existing values still on the page.
Here is some code for the parent form.
<td>img src="Picture.gif" alt="" border="0" onClick="zoomToggle('100px','100px','200px','200px',this);"><br>Product Name One<br>
<A HREF="ShoppingCart.htm?ItemNum=12345&ItemDesc=ProductNameOne" target="_blank">Add To Basket</a>
</td>
Here is some code for the child form:
<body onLoad="addRow()">
<form action="ShoppingCart.htm" method="post" name="ShoppingCart.htm" id="ShoppingCart.htm">
<table border="1" cellspacing="1" cellpadding="1" bgcolor="##C6BBBB">
<th>Below are the item(s) you've selected:</th>
<tr><td>ITEM</td><td>NUM</td><td>QTY</td></tr>
<output>
<tr>
<td><input type="text" name="ItemDesc" value="#url.ItemDesc#"></td></output><td><output>#url.ItemNum#</output></td><td><input type="text" name="#url.ItemNumQty#" value="1" size="3" maxlength="10"></td>
</tr>
</table>
</form>
</body>
Thanks!