AJAX - Server Response | XMLHttpRequest | Response

  • The readyState property holds the status of the XMLHttpRequest.

  • The onreadystatechange property defines a function to be executed when the readyState changes.

  • The status property and the statusText property holds the status of the XMLHttpRequest object.



PropertyDescription
onreadystatechangeDefines a function to be called when the readyState property changes
readyStateHolds the status of the XMLHttpRequest.
0: request not initialized
1: server connection established
2: request received
3: processing request
4: request finished and response is ready
status200: "OK"
403: "Forbidden"
404: "Page not found"
For a complete list go to the Http Messages Reference
statusTextReturns the status-text (e.g. "OK" or "Not Found")
AJAX - Server Response | XMLHttpRequest | Response AJAX - Server Response | XMLHttpRequest | Response Reviewed by Viththiyakaran on 9:05 PM Rating: 5

No comments:

Powered by Blogger.