Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIXMLHttpRequestEventTarget

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

This interface provides access to the event listeners used when uploading data using the XMLHttpRequest object.
1.0
50
Introduced
Gecko 1.9.1
Inherits from: nsIDOMEventTarget Last changed in Gecko 5.0 (Firefox 5.0 / Thunderbird 5.0 / SeaMonkey 2.2)

Attributes

Attribute Type Description
onabort nsIDOMEventListener A JavaScript function object that gets invoked if the operation is canceled by the user.
onerror nsIDOMEventListener A JavaScript function object that gets invoked if the operation fails to complete due to an error.
onload nsIDOMEventListener A JavaScript function object that gets invoked when the operation is successfully completed.
onloadend nsIDOMEventListener A JavaScript function object that gets invoked when the operation is completed for any reason; it will always follow a an abort, error, or load event.
onloadstart nsIDOMEventListener A JavaScript function object that gets invoked exactly once when the operation begins.
onprogress nsIDOMEventListener A JavaScript function object that gets invoked zero or more times, after the loadstart event, but before any abort, error, or load events occur.

Handling the events

When the handler functions for these events are called, they receive as a parameter a ProgressEvent, which implements the nsIDOMProgressEvent interface.

See also

文档标签和贡献者

 此页面的贡献者: Sheppy, trevorh, Jürgen Jeka
 最后编辑者: Sheppy,