Thursday, 16 August 2007

XMLHTTP readystate

Previous post has mentioned about XMLHTTP. onreadystatechange event fire up at several stages which allow response handling. Generally readystate has the following values:

0Uninitialisedbefore open() is called
1Request has set upbefore send() is called
2Request was sent and in processcontent header is available
3In processresponseText holds partial data but unfinished
4Completefinish processing and received response


P.S. according to QuirksBlog: XMLHTTP notes: readyState and the events, different browsers behave differently for onreadystatechange event handling.

No comments:

Post a Comment