WHY DO WE USE THE XMLHTTPREQUEST OBJECT IN AJAX?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
 860  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    Why do we use the XMLHttpRequest object in AJAX?

    The XMLHttpRequest object is used by JavaScript to transfer XML and other text data between client and server. The XMLHttpRequest object allows a client-side script to perform an HTTP request. AJAX applications use the XMLHttpRequest object so that the browser can communicate to the server without requiring a postback of the entire page. In earlier versions of Internet Explorer, MSXML ActiveX component is liable to provide this functionality; whereas, Internet Explorer 7 and other browsers, such as Mozilla Firefox, XMLHttpRequest is not liable to.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!