[jQuery] Synchronizing

2006-09-02 Thread Jörn Zaefferer
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

Re: [jQuery] Synchronizing

2006-09-02 Thread Franck Marcia
Hi folks, is there any way to synchronize calls in javascript without using callbacks? You could use a sort of proof of concept I wrote months ago: http://fmarcia.info/jquery/chain. I'm not sure it'll work with the latest version of jQuery though. Franck.

Re: [jQuery] Synchronizing

2006-09-02 Thread Dave Benjamin
On Sat, 2 Sep 2006, John Resig wrote: Neil Mix has released a library that lets you write Javascript code just like that: http://www.neilmix.com/narrativejs/doc/index.html Wow, that is really impressive. I've been thinking about different ways to approach the sync vs. async barrier. One

Re: [jQuery] Synchronizing

2006-09-02 Thread John Resig
Lately I've been experimenting with Parenscript, which is a Lisp-to-JavaScript translator that allows you to write macros; if anyone's interested I can post some sequencing macro code I've been working on... Go ahead! I'm interested :-) --John ___

Re: [jQuery] Synchronizing

2006-09-02 Thread Dave Benjamin
On Sat, 2 Sep 2006, John Resig wrote: Lately I've been experimenting with Parenscript, which is a Lisp-to-JavaScript translator that allows you to write macros; if anyone's interested I can post some sequencing macro code I've been working on... Go ahead! I'm interested :-) Right on.