WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIJSXMLHttpRequest

IID:261676b4-d508-43bf-b099-74635a0ee2e9
Inherits From:nsISupports

Properties

nsIDOMEventListener onerror

Meant to be a script-only mechanism for setting an error event listener. The attribute is expected to be JavaScript function object. When the error event occurs, the function is invoked. This attribute should not be used from native code!!

After the initial response, all event listeners will be cleared. XXXbz what does that mean, exactly?

Call open() before setting an onerror listener.

Mozilla only.

nsIDOMEventListener onload

Meant to be a script-only mechanism for setting a load event listener. The attribute is expected to be JavaScript function object. When the load event occurs, the function is invoked. This attribute should not be used from native code!!

After the initial response, all event listeners will be cleared. XXXbz what does that mean, exactly?

Call open() before setting an onload listener.

Mozilla only.

nsIDOMEventListener onprogress

Meant to be a script-only mechanism for setting a progress event listener. The attribute is expected to be JavaScript function object. When the error event occurs, the function is invoked. This attribute should not be used from native code!! This event listener may be called multiple times during the open request.

After the initial response, all event listeners will be cleared. XXXbz what does that mean, exactly?

This event listener must be set BEFORE calling open().

Mozilla only.

nsIDOMEventListener onreadystatechange

Meant to be a script-only mechanism for setting a callback function. The attribute is expected to be JavaScript function object. When the readyState changes, the callback function will be called. This attribute should not be used from native code!!

After the initial response, all event listeners will be cleared. XXXbz what does that mean, exactly?

Call open() before setting an onreadystatechange listener.

nsIDOMEventListener onuploadprogress

Meant to be a script-only mechanism for setting an upload progress event listener. This attribute should not be used from native code!! This event listener may be called multiple times during the upload..

After the initial response, all event listeners will be cleared. XXXbz what does that mean, exactly?

This event listener must be set BEFORE calling open().

Mozilla only.

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com