RussellDonders
Programmer
Hi,
I have a function on load page that I want to use to call several other functions to set up my page.
The problem I have is that it only executes the first function I put in the list and latter ones get ignored - it's like after it goes off into one of the subfunctions it never gets control back to the main function calling it.
Here's my code :
function calenderSet(){
updateDate2();
updateDate1();
updateDate3();
updateDate4();
}
and each of the subfunctions has code similar to :
function updateDate4(){
alert ("HELLO4"
var Day = window.document.calForm.dfday.value;
var Month = window.document.calForm.dfmonth.value;
var Year = window.document.calForm.dfyear.value;
var theDate = Year + Month + Day;
window.document.calForm.dfinishdate.value = theDate;
}
Is there anyway I can have my main function execute all 4 of the functions one after each other rather than just executing the first one ?
Thanks,
Russell
I have a function on load page that I want to use to call several other functions to set up my page.
The problem I have is that it only executes the first function I put in the list and latter ones get ignored - it's like after it goes off into one of the subfunctions it never gets control back to the main function calling it.
Here's my code :
function calenderSet(){
updateDate2();
updateDate1();
updateDate3();
updateDate4();
}
and each of the subfunctions has code similar to :
function updateDate4(){
alert ("HELLO4"
var Day = window.document.calForm.dfday.value;
var Month = window.document.calForm.dfmonth.value;
var Year = window.document.calForm.dfyear.value;
var theDate = Year + Month + Day;
window.document.calForm.dfinishdate.value = theDate;
}
Is there anyway I can have my main function execute all 4 of the functions one after each other rather than just executing the first one ?
Thanks,
Russell