View Full Version : Heeelp...! I want to open chromeless window from form submit button

09-24-2007, 10:54 PM
Can anyone help? I've used Mals-E.com as a shopping gateway for years but never been able to do what most of you might think is a really simple thing!
The shopping cart opens in the same window (big) or a new window (big) but is tucked away in a corner. I want to open it in a new pop-up window that also sends the html form info to the new window also on submit. I just want a nice size pop-up window to open and the form to submit at the same time. Would look much neater and when the customer's paid, they can just close the window and the original window of the website is below.

Here's the usual code and you'll see the server plus the action etc and the ID in the top few lines:

<form action="http://ww10.aitsafe.com/cf/addmulti.cfm" target=new method="post">
<INPUT TYPE="Hidden" NAME="userid" VALUE="C9300656">
<INPUT TYPE="HIDDEN" NAME="product1" VALUE="Cocktail Ring : Ref R2070">
<input type="Hidden" name="price1" value="9.99">
<input type=text name="qty1" value="1" size="2" MAXLENGTH="2">
<SELECT NAME="product1" SIZE="1">
<OPTION VALUE="Cocktail Ring R2070 Size J">J</OPTION>
<OPTION VALUE="Cocktail Ring R2070 Size L">L</OPTION>
<OPTION VALUE="Cocktail Ring R2070 Size P">P</OPTION></SELECT>
<input type="button" value="Buy Me" name="submit">

I know there should be a simple line of javascript to add/merge in somewhere like:
and have tried adding it to the end of the button code... name="submit" within the more than symbol but won't work, so guess it must be implimented somewhere towards the top???

Any help/advice welcomely received!!!:)