Hi, I have a function which does init steps. However, when I check my result, it seems like other processes after init function already finished. How can I hold other processes?
A:
Hard to give a sure answer without seeing any code. But generally, the only way you can tell if something is completed is by having a flag setting in your script, which is set at completion of your init function. You can use setTimeout in your init function to check for this flag, and fire off the next function when the flag has been set.
Again, hard to say without seeing the code, but maybe that helps.
jaywon
2010-05-12 22:48:08