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.
A version of this page is also available for
4/8/2010

Specifies the event handler for the ondataavailableevent.

Script Syntax

Copy Code
oXMLDOMDocument.ondataavailable = funcMyEventHandler;

Remarks

Script Parameters

None.

Script Return Value

None.

C/C++ Syntax

Copy Code
HRESULT put_ondataavailable(
  VARIANT 
ondataavailableSink
);

Remarks

C/C++ Parameters

ondataavailableSink

[in] Name of the function that should be called when the readyState Property (DOMDocument)value changes to the value INTERACTIVE, indicating that data is available.

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 handling asynchronous data, it is useful to be able to start processing in parallel with the download as soon as data becomes available. The ondataavailableevent fires each time a new chunk of data arrives. The readyState Property (DOMDocument)defines several states that specify the current status of the asynchronous download.

You can call QueryInterfacemethod of the DOMDocumentto obtain IConnectionPointContainer, which is used in event management. The DISPID for this event is DISPID_XMLDOMEVENT_ONDATAAVAILABLE.

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:

DOMDocument.

See Also

Concepts

ondataavailable Event

Other Resources

READYSTATE