Forum Moderators: phranque
<script>
function furtherDetails(capId)
{
document.PBQQForm1.p_pro_id.value = capId;
document.PBQQForm1.submit();
}
</script>
</head>
<body>
<a onMouseOver="this.style.cursor='hand' "href="javascript:;" onClick="javascript:furtherDetails(5);return false;">
Push me</a>
<form name="PBQQForm1" method="post" action="qq_add_dets_pack2.fe_template"
target="foo" onsubmit="window.open('', 'foo', 'width=600,height=700,status=no,resizable=yes,scrollbars=yes')">
<input name="p_pro_id" type="hidden">
<input type="submit">
</form>
</body>
</html>
If the submit button is pushed, it works. If the link is pushed it doesn't. Any ideas from you clever people?
both are working for me! (IE6 and Opera6)
Leo
[edited by: le_gber at 3:10 pm (utc) on April 10, 2003]
I came across this :
[experts-exchange.com...]
which summs up as :
the onsubmit function is not automatically activated when the submit() function is called.
heres the form tag:
<form name="frmstuur" method=post action="submit.asp" target="foo">
heres the function:
function DoSubmit(){
window.open '', 'foo', 'width=600,height=400');
document.frmstuur.submit();
}
vauneen.