Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 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,