This code works in IE but not netscape. Often times it's a syntax problem that netscape does not like.
The onchange event updates a table and then tells the parent to update also, then it closes the pop up.
Any ideas why this won't work in netscape? I tied it in 4.77 and 6.1
code follows:
<script Language="JavaScript">
<!--
function updateParent(form){
var i = "";
i = form.selOTFdesc.selectedIndex;
opener.document.budform.OtherDesc_code.value = form.selOTFdesc.options(i).value;
form.submit();
opener.document.budform.submit();
}
function OnloadCloseCheck(form){
//if close check is true close the window
var Ccode = form.CloseCode.value;
if (Ccode == "T" {window.close();}
}
//-->
</script>
The onchange event updates a table and then tells the parent to update also, then it closes the pop up.
Any ideas why this won't work in netscape? I tied it in 4.77 and 6.1
code follows:
<script Language="JavaScript">
<!--
function updateParent(form){
var i = "";
i = form.selOTFdesc.selectedIndex;
opener.document.budform.OtherDesc_code.value = form.selOTFdesc.options(i).value;
form.submit();
opener.document.budform.submit();
}
function OnloadCloseCheck(form){
//if close check is true close the window
var Ccode = form.CloseCode.value;
if (Ccode == "T" {window.close();}
}
//-->
</script>