dsdsdsdsd
05-16-2004, 01:29 PM
hello;
I have dozens of functions running, several of which are using setTimeout(); a particular function1 gets called over and over again, and, as it turns out, this particular function1 triggers another function2 WHICH ONLY NEEDS TO BE TRIGGERED ONCE;
because the RETURN function kills its caller I cannot use a RETURN to send a how_many_times_has_function2_been_called variable to function2 from function1 which has a setTimeout() running;
ANSWER: I need a literal global variable; PHP makes this a very simple task;
any thoughts?
I hope my question is sensible
thanks
Shannon Burnett
Asheville NC USA
I have dozens of functions running, several of which are using setTimeout(); a particular function1 gets called over and over again, and, as it turns out, this particular function1 triggers another function2 WHICH ONLY NEEDS TO BE TRIGGERED ONCE;
because the RETURN function kills its caller I cannot use a RETURN to send a how_many_times_has_function2_been_called variable to function2 from function1 which has a setTimeout() running;
ANSWER: I need a literal global variable; PHP makes this a very simple task;
any thoughts?
I hope my question is sensible
thanks
Shannon Burnett
Asheville NC USA