How To Retrieve XML Data Asynchronously with ondataavailable Event (285874)
The information in this article applies to:
- Microsoft XML 2.6
- Microsoft XML 3.0
- Microsoft XML 4.0
This article was previously published under Q285874 SUMMARY
When you handle asynchronous data, it is useful to start processing in parallel with the download as soon as data becomes available. The ondataavailable event fires each time a new chunk of data arrives, so that you can do the transfer immediately. However, the onreadystate event fires when the document load is complete. In order to get the last chunk of data, you must process it when the readyState property equals 4 in the onreadystate event handler.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto KB285874 |
---|
|