Explain Properties of XMLHttpRequest object

Answer

PropertyDescription
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

 

All xmlhttprequest Questions

Ask your interview questions on xmlhttprequest

Write Your comment or Questions if you want the answers on xmlhttprequest from xmlhttprequest Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---