PrepAway - Latest Free Exam Questions & Answers

what is the purpose of the XMLHttpRequest object?

When using AJAX, what is the purpose of the XMLHttpRequest object?

PrepAway - Latest Free Exam Questions & Answers

A.
To transfer an XML document to the Web server

B.
To request data from the Web server strictly in XML format

C.
To read and write to an XML file stored on the local machine

D.
To request either XML data or plaintext data from the Web server

Explanation:

PrepAway - Latest Free Exam Questions & Answers

One Comment on “what is the purpose of the XMLHttpRequest object?

  1. ILucky says:

    The name was standardized to XMLHttpRequest for compatibility. It may be misleading, in particular because any data may be received from the server, not just XML.[3] Data are also commonly received as JSON,[4] HTML, or as plain text.[5] Data from the response can be used to alter the current document in the browser window without loading a new web page. The response data can also be evaluated by client-side scripting. For example, if it was formatted as JSON by the web server, it can be converted into a client-side data object for further use.




    0



    0

Leave a Reply