I am trying to get the value of a variable from another frame called middle which has a procedure called validform() in it. Within this function is a variable called checkok.
I am using the following function called fom a button, in the other frame called bottom, which tries to call the variable checkok in frame middle, but it doesnt seem to work. Any clues?
Thx
I am using the following function called fom a button, in the other frame called bottom, which tries to call the variable checkok in frame middle, but it doesnt seem to work. Any clues?
Thx
Code:
<script type="text/javascript">
<!--
function submitform(){
var checkok2 = parent.middle.checkok;
if (checkok2 >0){
parent.middle.document.faultform.submit()
}
else{
parent.middle.document.faultform.onsubmit();
}
}
//-->
</script>