Neil Mix has released a library that lets you write Javascript code
just like that:
http://www.neilmix.com/narrativejs/doc/index.html

--John

On 9/2/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> is there any way to synchronize calls in javascript without using callbacks?
>
> Example:
>
> doSomething();
> reset();
> doSomethingElse();
>
> Reset calls some asychronous code and I don't want it to return until
> the call is complete.
> The obvious solution is to pass doSomethingElse as a callback for reset,
> but that makes it very difficult in the given scenario.
>
> Any ideas?

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to