Nasi wolontariusze nie przetłumaczyli jeszcze tego artykułu na język Polski. Dołącz do nas i pomóż go przetłumaczyć!
The ProgressEvent interface represents events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).
Properties
Also inherits properties from its parent Event.
ProgressEvent.lengthComputableRead only- Is a
Booleanflag indicating if the total work to be done, and the amount of work already done, by the underlying process is calculable. In other words, it tells if the progress is measurable or not. ProgressEvent.loadedRead only- Is an
unsigned long longrepresenting the amount of work already performed by the underlying process. The ratio of work done can be calculated with the property andProgressEvent.total. When downloading a resource using HTTP, this only represent the part of the content itself, not headers and other overhead. ProgressEvent.totalRead only- Is an
unsigned long longrepresenting the total amount of work that the underlying process is in the progress of performing. When downloading a resource using HTTP, this only represent the content itself, not headers and other overhead.
Constructor
ProgressEvent()- Creates a
ProgressEventevent with the given parameters.
Methods
Also inherits methods from its parent Event.
ProgressEvent.initProgressEvent()- Initializes a
ProgressEventcreated using the deprecatedDocument.createEvent("ProgressEvent")method.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Progress Events The definition of 'ProgressEvent' in that specification. |
Candidate Recommendation | Initial definition. |
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 1.0 | 3.5 (1.9.1) | 10.0 | (Yes) | (Yes) |
initProgressEvent() |
1.0 Removed in 17.0 |
3.5 (1.9.1) Removed in 22 (22) |
10.0 | Removed in 15.0 | Not supported (Removed at some point. |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | (Yes) | 1.0 (1.9.1) | 10.0 | (Yes) | (Yes) |
initProgressEvent() |
Not supported (Removed at some point) | 1.0 (1.9.1) Removed in 22.0 (22) |
10.0 | Removed in 15.0 | Not supported (Removed at some point. |
See also
- The
Eventbase interface.