onprogress event

ProgressEvent that occurs when an MSStreamReader or FileReader object reports progress about a read operation.

Syntax

Event Property object.onprogress = handler;
addEventListener Method object.addEventListener("progress", handler, useCapture)

Event handler parameters

handler [in]

Type: function

Function to process the progress event.

Remarks

This event reports the number of bytes loaded by a MSStreamReader or FileReader object read operation so far.

The length property of the ProgressEvent contains the number of bytes read and the total property of the ProgressEvent contains the total number of bytes that will be read. The total property is initialized to 0 (zero) and remains at 0 (zero) until the number of bytes to be read is known.

The lengthComputable property of the ProgressEvent indicates that the total number of bytes to be read is known and the total property of the ProgressEvent is valid.

See also

FileReader
MSStreamReader
ProgressEvent

 

 

Show:
© 2014 Microsoft