I have a form that submit to the same page when double click on a product:
<form method="post" action="quotes. asp" name="form1"
onDblClick="jav ascript:formHan dler()">
How can I submit the form in a popup window and another page using a html
link?
Following code doesn't work because of the nested apostrophes in the
javascript.
<a href="#"
onclick="window .open('javascri pt:document.for m1.action='save quote.asp';
document.form1. submit();','pop up','width=150, height=100,top= ' + topPos +
',left=' + leftPos);">Save Quote</a>
<script language="JavaS cript">
var w = 400, h = 200;
if (document.all || document.layers ) {
w = screen.availWid th;
h = screen.availHei ght;
}
var popW = 200, popH = 150;
var leftPos = (w-popW)/2, topPos = (h-popH)/2;
</script>
<form method="post" action="quotes. asp" name="form1"
onDblClick="jav ascript:formHan dler()">
How can I submit the form in a popup window and another page using a html
link?
Following code doesn't work because of the nested apostrophes in the
javascript.
<a href="#"
onclick="window .open('javascri pt:document.for m1.action='save quote.asp';
document.form1. submit();','pop up','width=150, height=100,top= ' + topPos +
',left=' + leftPos);">Save Quote</a>
<script language="JavaS cript">
var w = 400, h = 200;
if (document.all || document.layers ) {
w = screen.availWid th;
h = screen.availHei ght;
}
var popW = 200, popH = 150;
var leftPos = (w-popW)/2, topPos = (h-popH)/2;
</script>
Comment