Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What values exists for the XmlHttpRequest.readyState field, and what do they mean?

exists field mean values
0
Posted

What values exists for the XmlHttpRequest.readyState field, and what do they mean?

0

When is it appropriate to access, or use the other fields within the XmlHttpRequest object? The most important field is the readyState field. Once a value of 4 (i.e., complete) is received, then the next most important field is status. The value of status will be the same as the HTTP Status Code values When should AJAX NOT be used? It would not be appropriate to use AJAX when the “answer/result” can be determinded by the client. Generally, the purpose of AJAX is to submit a short request to the server, and process the response in such a way as to add value to the currently displayed page. It would also not be appropriate to use AJAX when the magnitude of the response is such that it would be easier, and more clear to redisplay the page. What objects are used by AJAX programs? The most bovious / correct answer would be “XmlHttpRequest”. However, personally, I would seriously consider someone who discussed the use of the callback routine, and most specifically “the response” as “objects”

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123