Submit问题求助!!!!!
function fnUpdate()
{
if(confirm( "再次检查后按 <确认> ! "))
{
var p = document.getElementsByName( "rdClose ");
for (var i=0;i <p.length;i++)
{
if(p[i].checked)
{
var vPoNo = eval( 'p[i].parentNode.parentNode.childNodes[3].childNodes[0].nodeValue ');
document.frmCloseDirPO.txtPoNo.value = vPoNo;
document.frmCloseDirPO.txtIceQty.value = eval( 'p[i].parentNode.parentNode.childNodes[8].childNodes[0].nodeValue ');
document.frmCloseDirPO.txtShTo.value = eval( 'p[i].parentNode.parentNode.childNodes[1].childNodes[1].value ');
document.frmCloseDirPO.txtSNo.value = eval( 'p[i].parentNode.parentNode.childNodes[0].childNodes[1].value ');
document.frmCloseDirPO.submit();
alert( "已经完成 ");
}
}
self.location= 'DropShip.jsp ';
}
else
{
return;
}
}
.
.
.
.
.
<form name= "frmCloseDirPO " action= "DropShipmentPoMaintainCloseDirPo.jsp " target= "actframe1 ">
<input type= "hidden " name= "txtPoNo ">
<input type= "hidden " name= "txtIceQty ">
<input type= "hidden " name= "txtShTo ">
<input type= "hidden " name= "txtSNo ">
</form>
.
.
.
. <script language= "JavaScript ">
setImageButton( "form1 ", "btnSearch " , FIND_BUTTON_UP, true, "更改 ", "fnUpdate() ");
</script>
为什么我在点了更改触发了fnUpdate()以后不执行document.frmCloseDirPO.submit();但是alert( "已经完成 ");能执行到,很奇怪,大虾帮忙解决
------解决方案--------------------你都submit了,还要alert()?
------解决方案--------------------不会出现这种情况,如果alert执行了
表单也一定提交了