initProgressEvent method

Initializes the value of a ProgressEvent object.

Internet Explorer 10

 

Syntax

var retval = ProgressEvent.initProgressEvent(typeArg, canBubbleArg, cancelableArg, lengthComputable, loadedArg, totalArg);

Parameters

typeArg [in]

Type: DOMString

The value of this parameter must be one of the following values.

ValueMeaning
loadstart

An operation has started.

progress

An operation is in progress.

error

The operation failed to complete.

abort

The operation was cancelled.

load

The operation completed successfully.

 

canBubbleArg [in]

Type: boolean

Specifies whether an event bubbles.

ValueMeaning
true

The event bubbles.

false

The event does not bubble.

 

cancelableArg [in]

Type: boolean

Specifies whether an event can be cancelled.

ValueMeaning
true

The event can be canceled.

false

The event cannot be canceled.

 

lengthComputable [in]

Type: boolean

Indicates whether the value of the total attribute of the ProgressEvent is accurate.

ValueMeaning
true

The value of event.total is reliable.

false

The value of event.total is not reliable.

 

loadedArg [in]

Type: integer

Specifies the number of bytes already loaded or zero if not known.

totalArg [in]

Type: integer

Specifies the number of bytes to be loaded. If lengthComputable is false, this must be zero ("0").

Return value

Type: HRESULT

This method can return one of these values.

S_OK

See also

ProgressEvent

 

 

Show:
© 2014 Microsoft