[thelist] javscript variables question - easy one
Brian Delaney
brian.delaney at mccmh.net
Wed Feb 9 11:50:26 CST 2005
I have function that checks for valid date input. function datecheck()
The function checks for the possibility that a user entered a start and
end date.
so I declared global variables: globalStart globalEnd
I pass these to datecheck datecheck(globalStart, globalEnd) from the
main function main()
if both fields are not = NULL then I assign:
globalStart = globaStart + form.txtStartdate.value
globalEnd = globalEnd + form.txtEnddate.value
If i use the alert() to display the value of these in the datecheck()
they are correct.
If i use the alert() in the main() calling function they display NULL -
blank values.
How do I get the function to return or modify 2 or more variables?
Thanks
*
*
*
This message, including any attachments, is intended solely for the use of the named recipient(s) and may contain confidential and/or priveleged information. Any unauthorized review, use, disclosure or distribution of this communication(s) is expressly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message.
More information about the thelist
mailing list