AJAX takes less loading time than Java applet. AJAX web applications are easily searchable as they are HTML based. AJAX features are an increase from a conventional web application while Java applet web applications are the basic ones. Incompatibility issues arise in Java applets with the change in Java versions while such issues do not arise with AJAX.
It saves memory when the data is obtained from the same page thereby maximum utilization of the bandwidth It is more interactive. It facilitates speedier retrieval of data. Asynchronous behaviour helps to update only a portion of the page without refreshing the whole page.
Encoding is handled in AJAX in following two ways:
Using encodeActionURL() method to refresh the complete page
Using encodeResourceURL() method to partially update a page
AJAX's Asynchronous behaviour refers that it has the ability to update only a portion of the page without refreshing the whole page.
We are unable to send a request to a server outside of the domain from which the web page originated with the help of AJAX.
In Synchronous Postback, complete web page is sent to server and it returns rendering of complete page as an output but in case of Asynchronous Postback, only a portion of the page goes to the server and it renders only the partial portion of the page which is required instead of complete page.
AJAX techniques give facility to be implemented by
XMLHttpRequest is an API used as an object for transferring data between server and client’s browser. XMLHttpRequest is only part of the Ajax equation. This object allows the data transfer without reloading the page. The data transfer can take place in the format of plain text, HTML, XML or JSON. This object allows to parse the xml format. It is supported by all the browsers.
Following controls come under AJAX-