This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

initProgressEvent

Summary

Initializes the value of a ProgressEvent object.

Method of dom/ProgressEventdom/ProgressEvent

Syntax

var object = object.initProgressEvent(/* see parameter list */);

Parameters

typeArg

Data-type
String

The value of this parameter must be one of the following values. ‘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

Data-type
Boolean

Specifies whether an event bubbles.

cancelableArg

Data-type
Boolean

Specifies whether an event can be cancelled.

lengthComputable

Data-type
Boolean

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

loadedArg

Data-type
unsigned long

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

totalArg

Data-type
unsigned long

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

Return Value

Returns an object of type DOM NodeDOM Node

Type: HRESULT

This method can return one of these values.

S_OK

Notes

Depreciated This feature has been removed from the Web. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Syntax

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

Attributions