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

2010-09-24 Thread JoJo
I don't need A to finish before B. I need A's callbacks to not be cut off by B's instantiation. On Sep 24, 12:44 pm, Phil Petree phil.pet...@gmail.com wrote: 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

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

2010-09-24 Thread JoJo
I believe I solved the problem. I had a queue of work orders. One of these work orders queued up another work order, so it was a nested AJAX request - BAD IDEA! On Sep 24, 12:56 pm, JoJo tokyot...@gmail.com wrote: I don't need A to finish before B. I need A's callbacks to not be cut off by B's

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

2010-09-24 Thread Phil Petree
Same difference. Since the AJAX calls are Async you have no control over what gets completed first or what gets interrupted by what. If script a does a complex query taking 2.2 seconds and returns a large data set while script b does a simple query that takes .02 seconds and returns 100 bytes,