Bug Tracker

Opened 9 years ago

Closed 9 years ago

#14605 closed feature (notabug)

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 ]

Change History (2)

comment:1 Changed 9 years ago by dcherman

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

comment:2 Changed 9 years ago by dmethvin

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.

Note: See TracTickets for help on using tickets.