Skip to main content

Bug Tracker

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:

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 ]

Attachments (0)
Change History (2)

Changed December 04, 2013 11:05PM UTC by dcherman comment:1

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 the progress 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 the progressCallback

Changed January 05, 2014 02:27AM UTC by dmethvin comment:2

resolution: → notabug
status: newclosed

I'd prefer to incorporate something like this into our new $.xhr being discussed for 1.12/2.2. Let's track it in #9883 though.