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.
that shoudl work in most cases, but of course if you're calling a bunch of functions2's and they stop at weird intervals, it may fail. You'd have to work on security
i am just a new boy, a stranger in this town. Where are all the good times, whose gonna show this stranger around.
I reread what he was talking about, and i was wrong, sorry. I was thinking he wanted the main loop (i'm thinking c here) when he was talking about function1 loop (but said main).
i am just a new boy, a stranger in this town. Where are all the good times, whose gonna show this stranger around.
Bookmarks