Property | Description |
---|---|
onReadyStateChange | It is called whenever readystate attribute changes. It must not be used with synchronous requests. |
readyState | represents the state of the request. It ranges from 0 to 4.
0 UNOPENED open() is not called. 1 OPENED open is called but send() is not called. 2 HEADERS_RECEIVED send() is called, and headers and status are available. 3 LOADING Downloading data; responseText holds the data. 4 DONE The operation is completed fully. |
reponseText | returns response as text. |
responseXML | returns response as XML |