Side navigation
#7289 closed enhancement (wontfix)
Opened October 22, 2010 07:31PM UTC
Closed April 16, 2011 08:50PM UTC
Last modified July 02, 2012 10:10PM UTC
.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: | rwaldron |
Blocked by: | 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.
Attachments (0)
Change History (8)
Changed October 23, 2010 08:09AM UTC by comment:1
blockedby: | → 7195 |
---|---|
component: | unfiled → ajax |
priority: | undecided → low |
status: | new → open |
Changed October 23, 2010 02:19PM UTC by comment:2
cc: | → rwaldron |
---|
Changed October 28, 2010 09:40AM UTC by comment:3
_comment0: | I agree, simple patch is replace \ jQuery.triggerGlobal( s, "ajaxSuccess", [xhr, s] ); \ with \ jQuery.triggerGlobal( s, "ajaxSuccess", [xhr, s, data] ); → 1288258841012462 |
---|
I agree, simple patch is replace:
jQuery.triggerGlobal( s, "ajaxSuccess", [xhr, s] );
with
jQuery.triggerGlobal( s, "ajaxSuccess", [xhr, s, data] );
Changed November 04, 2010 05:21PM UTC by comment:4
I vote for this as well.
Changed December 22, 2010 08:32AM UTC by comment:5
Also jQuery.handleComplete() always called with data passing, but don't pass it to jQuery.triggerGlobal() and s.complete.call()
Changed December 27, 2010 10:37PM UTC by comment:6
keywords: | → ajaxrewrite |
---|
Changed April 16, 2011 08:50PM UTC by comment:7
resolution: | → wontfix |
---|---|
status: | open → closed |
By the time that we land this (1.7), we'll probably be removing the global Ajax events. Closing.
Changed July 02, 2012 10:10PM UTC by comment:8
Well, 1.7 has come and gone and we still have global ajax handlers. Are the global handlers even deprecated now? Reconsider?