Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Specifies the event handler to be called when the readyState Property (DOMDocument)changes.
Script Syntax
Copy Code | |
---|---|
oXMLDOMDocument.onreadystatechange = funcMyEventHandler; objXMLDOMDocument.onreadystatechange = value; |
Remarks
Script Parameters
None.
Script Return Value
None.
C/C++ Syntax
Copy Code | |
---|---|
HRESULT put_onreadystatechange( VARIANT readystatechangeSink ); |
Remarks
C/C++ Parameters
- readystatechangeSink
-
[in] Name of the function that should be called when the readyStateproperty value changes.
C/C++ Return Values
- S_OK
-
Value returned if successful.
Requirements
Header | msxml2.h, msxml2.idl |
Windows Embedded CE | Windows CE .NET 4.0 and later |
General Remarks
When using scripting languages, this property can be set in ways other than directly accessing the property through DOMDocument. It can also be set using the onreadystatechangeattribute of the <XML> tag, and the SCRIPT FOR... construct.
You can call the QueryInterfacemethod of the DOMDocumentto obtain IConnectionPointContainerfor event management. The DISPID for this event is DISPID_XMLDOMEVENT_ONREADYSTATECHANGE.
This member is an extension of the Worldwide Web Consortium (W3C) Document Object Model (DOM).
This property is write-only, and applies to the following interface: