If I can get this one right, i'll be off the board for a while... hopefully!
How to use jQuery to sequence javascript functions? At the moment, I'm doing
fnAll() {
fn1(); // which takes, say, 4 secs to run
setTimeout('fn2()', 5000); // takes another 5 seconds, so
setTimeout('fn3()', 11000); // etc
}
which is ok, but may mess up on slow browsers.
If it's jQuery snippets, then I can do nested callbacks ok.
Maybe queue() might be the answer, but the examples all use jquery snippets. What I want is something like
fn1(); delay(1000).fn2();delay(1000).fn3()...
Can anyone point me in the right direction?
cheers again