Skip to main content

Bug Tracker

Side navigation

#12290 closed bug (invalid)

Opened August 14, 2012 09:13AM UTC

Closed August 18, 2012 03:03PM UTC

$.ajaxSetup "success" global event bug against "complete" and other correct global events(not repeated)

Reported by: abbasali hashemian (alix) <> Owned by:
Priority: low Milestone: None
Component: ajax Version: 1.8.0
Keywords: dbr Cc:
Blocked by: Blocking:
    type : 'POST',
//  data : {}, 
    beforeSend : function ( XHR ){}, 
    complete : function ( XHR ){
        alert(0) //OK
    success : function(data){
        alert(1) //BOOM
    error : function ( XHR ){

If we use $(...).load or $.post later "complete" will work but "success" will not.

more information :

browser : firefox 10.0.2 - OS : win7(nothing is related to OS)

Bug accidents : jQ1.4.2 - jQ1.7.1(repeated) - jQ1.8.0(yes it's here again)

Bug accident env : either with my complex and reduced code and jQGrid plugin also(complete worked success not). Excuse me, for a long term I resolved it for myself and for now yes I'm using complete instead of success but for other friends it may be a vital problem to have an event after success ajax and before injecting html data.


Attachments (0)
Change History (7)

Changed August 14, 2012 12:15PM UTC by sindresorhus comment:1

component: unfiledajax
priority: undecidedlow

Can you post a testcase on jsfiddle demonstrating the issue?

See the ajax docs:

Deprecation Notice: The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks will be deprecated in jQuery 1.8. To prepare your code for their eventual removal, use jqXHR.done(),, and jqXHR.always() instead.

Does the same thing happen with .always() ?

Changed August 14, 2012 02:05PM UTC by alix comment:2

_comment0: Yes, I'll try to post a simple test fiddle code. However If "dmethvin" lets us and doesn't close this Ticket as invalid like this : [] "live / delegate filter :enabled bug"1344953222421727

Yes, I'll try to post a simple test fiddle code. However If "dmethvin" lets us and doesn't close this Ticket as invalid like this : "live / delegate filter :enabled bug"

Changed August 14, 2012 02:11PM UTC by ajpiano comment:3

"dmethvin" is Dave Methvin and he's the lead developer for jQuery Core and the development lead for the jQuery Project. If you have a problem with him attentively closing bugs that are indeed invalid shortly after filing them, well, you should probably find a way to not have that problem any more, because it's actually a good thing.

Changed August 14, 2012 02:33PM UTC by alix comment:4


Thank you "ajpiano" for advising me respectfully

And also you "sindresorhus", Thank you for consulting

However I think closing of that bug was not attentively because I told "live / delegate" not exactly "live"(as a deprecated method) so obviously the actual problem is probably in another point or core

Actually that bug took a lot of my time to find the sub-bugs and finally I decided to let other friends to know that.

I have no problem with "Mr. Dave Methvin" but if jQuery is a free opensource js+dom library it doesn't mean caring customers is not important. I came to help but I had to spend a lot of time on jsFiddle and on jQuery Bug Tracker and finally I saw my post was "CLOSED/INVALID BUG". I think it is not respectful.

So if jQuery has no time to spend for friendly bug reports I have no more time spend also. BYE


Master PHP / developer and CEO


Changed August 14, 2012 02:34PM UTC by alix comment:5


Changed August 14, 2012 02:56PM UTC by mikesherov comment:6

keywords: → dbr

Changed August 18, 2012 03:03PM UTC by mikesherov comment:7

resolution: → invalid
status: newclosed

Invalid simply means its not a bug. Please don't assume it's a judgement on your character or efforts.