Re: [Proto-Scripty] AJAX callbacks are not executed atomically?

2010-09-25 Thread Richard Quadling
On 24 September 2010 20:21, JoJo wrote: > I have several lines of code that I want to run atomically (no context > switches to other code). Please look at the following barebones > example that illustrates the issue: > > //= > > function doAjax() { >  console.info('making r

Re: [Proto-Scripty] AJAX callbacks are not executed atomically?

2010-09-24 Thread Phil Petree
If you want a() to finish before b() and b() to finish before c() then you will have to daisy chain in the onComplete code. On Fri, Sep 24, 2010 at 3:21 PM, JoJo wrote: > I have several lines of code that I want to run atomically (no context > switches to other code). Please look at the followin

[Proto-Scripty] AJAX callbacks are not executed atomically?

2010-09-24 Thread JoJo
I have several lines of code that I want to run atomically (no context switches to other code). Please look at the following barebones example that illustrates the issue: //= function doAjax() { console.info('making request'); new Ajax.Request( url, { onSuccess: fun