rjusa
11-05-2003, 11:38 PM
I thought the following would be executed when the child window closes and returns to the parent.
Code is in the parent.
<script language="JavaScript"><!--
window.onFocus=sum(this.value)
function sum(objRef) {
var result = 0;
result += document.forms[0].CndnFBpc.value - 0;
result += document.forms[0].CndnSBpc.value - 0;
result += document.forms[0].CndnCFBpc.value - 0;
result += document.forms[0].CndnCSBpc.value - 0;
if (result > 100)
alert("Your allocation exceeds 100%, please check your distribution");
}//--></script>
What have I screwed up this time?
Thanks,
Ron
Code is in the parent.
<script language="JavaScript"><!--
window.onFocus=sum(this.value)
function sum(objRef) {
var result = 0;
result += document.forms[0].CndnFBpc.value - 0;
result += document.forms[0].CndnSBpc.value - 0;
result += document.forms[0].CndnCFBpc.value - 0;
result += document.forms[0].CndnCSBpc.value - 0;
if (result > 100)
alert("Your allocation exceeds 100%, please check your distribution");
}//--></script>
What have I screwed up this time?
Thanks,
Ron