[jQuery] Re: Wait for one function to finish, then start the next....

2009-05-24 Thread Ricardo
what's the code for open_popup? does it involve ajax? http://www.ibm.com/developerworks/web/library/wa-ajaxintro2/#N103A2 On May 23, 2:42 pm, macphreak swhit...@gmail.com wrote: I have seen a few of threads on this issue. However, they have mostly deal with the fadeins or fadeouts which is

[jQuery] Re: Wait for one function to finish, then start the next....

2009-05-24 Thread macphreak
No, it doesn't involve Ajax. Although I wish it did. It would be a lot easier for me to define a call back then. :) This is code that I have to work with (or work around I should say) Thanks again for any helpful hints! On May 24, 6:33 pm, Ricardo ricardob...@gmail.com wrote: what's the code

[jQuery] Re: Wait for one function to finish, then start the next....

2009-05-24 Thread Erik Beeson
As you've probably found, there is no sleep/wait/pause in JavaScript. The whole system is single-threaded, so any sort of sleep would hose the whole system. Your original statement doesn't actually make sense. As it is, function2 *doesn't* execute until open_popup returns, so that isn't really