Hi, I just launched in my site an addin, it is basically a order product button in a pop up picture window of the item.
So the customers can order the item from the pop up Picture window if dessired… the complicated thing for me is how to do this:
– To close that pop window after click the order button.
those are my first 2 attemps with no satisfactory results…
This first code closes the window and post nothing.
<form name=”cart” method=”post” action=”scriptname.cgi”>
<a href=”javascript:document.cart.submit();” onClick=”javascript:self.close();”>Submit</a>
</form>
This 2nd code submit the thing but dont close the window.
<form onsubmit=”javascript:self.close();” method=post action=”scriptname.cgi”>
<a href=”javascript:document.cart.submit();” onsubmit=”javascript:self.close();”>Submit</a>
</form>
any idea with that mission?
thanks in advance.