Compartilhar via


ondataavailable Event

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This event fires when new data is available.

Usage Syntax Platforms

Inline HTML

<ELEMENT ondataavailable = "handler" ... >

All platforms

Event property

object.ondataavailable = handler

Microsoft® JScript® (compatible with ECMA 262 language specification) only

Named script

<SCRIPT FOR = object EVENT = ondataavailable>

Microsoft Internet Explorer only

Script Syntax

oXMLDOMDocument.ondataavailable;

Remarks

Script Parameters

None.

Script Return Value

None.

C/C++ Syntax

HRESULT ondataavailable( void );

Remarks

C/C++ Parameters

None.

C/C++ Return Values

S_OK is the value returned if the event is successful.

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 readyState Property (DOMDocument) defines several states that specify the current status of the asynchronous download.

The event handler for this event can be explicitly set using the ondataavailable property.

This member is an extension of the Worldwide Web Consortium (W3C) Document Object Model (DOM).

Requirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

This event applies to the following interface:

DOMDocument.

See Also

Concepts

ondataavailable Property

Other Resources

READYSTATE