SetTimeout issue

admin

Administrator
Staff member
Hi,

I have a function that calls itself using setTimeout('function1', 100) 90 times. Within this function, if a certain condition is true it calls another function which also has a setTimeout('function2' 200), I want this one to run 6 times, but while it is running the main looped function carries on executing. I want the main function to stop until function2 has run through it's 6 times.

Anyone have any ideas?

Cheers,
C
 
Back
Top