#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: |
Description
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 13 years ago by
Blocked by: | 7195 added |
---|---|
Component: | unfiled → ajax |
Priority: | undecided → low |
Status: | new → open |
comment:2 Changed 13 years ago by
Cc: | Rick Waldron added |
---|
comment:5 Changed 12 years ago by
Also jQuery.handleComplete() always called with data passing, but don't pass it to jQuery.triggerGlobal() and s.complete.call()
comment:6 Changed 12 years ago by
Keywords: | ajaxrewrite added |
---|
comment:7 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | open → closed |
By the time that we land this (1.7), we'll probably be removing the global Ajax events. Closing.
comment:8 Changed 11 years ago by
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.
I agree, simple patch is replace:
jQuery.triggerGlobal( s, "ajaxSuccess", [xhr, s] );
with
jQuery.triggerGlobal( s, "ajaxSuccess", [xhr, s, data] );