Describe the formats and protocols used by AJAX.The protocol used for making a request to the server is XmlHttpRequest. This object is created by client browser. The data transfer takes place in plain text xml or JSON format. This object allows to parses the xml format and the JSON format is loaded as plain text and parsed by JavaScript. It is recognized by all the browsers
- Ajax uses HTTP’s GET or POST. AJAX also uses XMLHttpRequest protocol for requesting to the web server. - AJAX uses JSON format to communicate between client and server. UED or URL encoded data formats can also be used.
|