Yeah, I just looked into the code and it seems neither early nor in-progress aborts calls anything else but ajaxStop. But I also see that:- you can make an early abort by having the beforeSend callback return false (didn't notice that in the doc) - I completely forgot the global ajax events and I should definitely fire them.
Thanks for the fast answer John :) 2009/3/13 John Resig <[email protected]> > > Good question - I'm about 75% certain that no callbacks get called > (without taking a look at the code). Although, I'm sure a quick test > could confirm/deny that. > > --John > > > > On Thu, Mar 12, 2009 at 10:49 PM, Julian Aubourg > <[email protected]> wrote: > > Working on a jsonp plugin (that will supercede my getJSON mess of a > > replacement). > > I'd like it to be as similar to $.ajax behavior as possible and I'm > > wondering what happens exactly when the abort method of the xhr object is > > called while the request is still active. > > More precisely, are the success/error and complete callbacks called or > not? > > That's really the only little thing I have left before I make some > > documentation and release it. > > Thanks in advance, > > -- Julian > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" 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/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
