Side navigation
#14605 closed feature (notabug)
Opened December 04, 2013 10:59PM UTC
Closed January 05, 2014 02:27AM UTC
Allow ajaxTransports to send progress updates
Reported by: | dcherman | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This is almost a subset of #9883 since it would be a requirement for that, but currently there doesn't seem to be a way to send progress updates in ajaxTransports - I'd like to change that.
The signature for the send
method in a transport is currently [ headers, completeCallback ] which I'd like to change to [ headers, completeCallback, progressCallback ]
Little quick on the submit on my part since I forgot to mention:
There would be an additional option added for ajax -
progress
, which like the other callbacks would just register itself via theprogress
method on the promise that's returned.The notifications would be invoked with the same
callbackContext
as the error/success/complete notifications, and the arguments are whatever is passed to theprogressCallback