Dom|xml| Object ondataavailable Event
Role
This event is triggered when the XML file is valid.
Basic syntax
This event has the following three ways to handle
. Inline:<element ondataavailable = handler>;
. Event property:object.ondataavailable = handler;
. Named Script:<script for = Object EVENT = ondataavailable>;
Description
The ondataavailable event is triggered whenever a valid data is obtained. This technique does not explain how much data is available in this file.
Example
xmldoc.ondataavailable = alert (' Data ' now available. ') ;
onReadyStateChange Events
Role
This event is triggered when the content of the ReadyState property changes.
Basic syntax
This incident has the following three ways of handling:
. Inline:<element onreadystatechange = handler>;
. Event Property:object.onreadystatechange = handler;
. Named Script:<script for = Object EVENT = onreadystatechange>;
Description
The onReadyStateChange event is triggered when the content of the ReadyState property changes, but the event does not indicate what the "ready" state is. You must use the ReadyState property to get the current state.
Example
Xmldoc.onreadystatechange =
Alert ("The ReadyState property is" + Xmldoc.readystate);