Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#7289 closed enhancement (wontfix)

.ajaxSuccess() global handler should have access to the response data

Reported by: skrul Owned by:
Priority: low Milestone:
Component: ajax Version: 1.4.3
Keywords: ajaxrewrite Cc: Rick Waldron
Blocked by: #7195 Blocking:


Currently there is no way to get a request's response data in a global success handler, other than re-parsing the xhr.response yourself. Would be nice if the same data parameter that is passed to the local success handler was also passed to the global success handler.

Change History (8)

comment:1 Changed 11 years ago by snover

Blocked by: 7195 added
Component: unfiledajax
Priority: undecidedlow
Status: newopen

comment:2 Changed 11 years ago by Rick Waldron

Cc: Rick Waldron added

comment:3 Changed 11 years ago by mot

I agree, simple patch is replace:

jQuery.triggerGlobal( s, "ajaxSuccess", [xhr, s] );


jQuery.triggerGlobal( s, "ajaxSuccess", [xhr, s, data] );

Last edited 11 years ago by mot (previous) (diff)

comment:4 Changed 11 years ago by anonymous

I vote for this as well.

comment:5 Changed 11 years ago by anonymous

Also jQuery.handleComplete() always called with data passing, but don't pass it to jQuery.triggerGlobal() and s.complete.call()

comment:6 Changed 11 years ago by Rick Waldron

Keywords: ajaxrewrite added

comment:7 Changed 11 years ago by john

Resolution: wontfix
Status: openclosed

By the time that we land this (1.7), we'll probably be removing the global Ajax events. Closing.

comment:8 Changed 9 years ago by [email protected]

Well, 1.7 has come and gone and we still have global ajax handlers. Are the global handlers even deprecated now? Reconsider?

Note: See TracTickets for help on using tickets.