On 30 Sep 2011, at 12:32, Richard Quadling wrote:

> onFailure / onSuccess is in response to a working result from the AJAX call.
> 
> onComplete is in response to the AJAX mechanism shutting down.
> 
> onComplete will always be called, but it isn't its job to deal with
> the data from the call. That is onSuccess. If the call failed for some
> reason, onComplete wouldn't have any data to work with and could make
> things worse.
> 
> I use onCreate and onComplete to turn on/off a little spinner showing
> that the app is doing something behind the scenes.

Right - thanks. That could be useful.

-- 
Cheers... Chris
Highway 57 Web Development -- <http://www.highway57.co.uk/>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to