1.

Explain the working of AJAX.

Answer»

Ajax (Asynchronous JavaScript and XML) is a set of WEB development approaches that generate asynchronous web applications using various client-side web technologies. Web applications that use Ajax can transmit and get data from a server asynchronously (in the BACKGROUND) without interfering with the existing page's appearance and behaviour.

The XMLHttpRequest Object is used by Ajax to communicate with the server. The user submits a request using the User Interface, and a JavaScript call is made to the XMLHttpRequest Object, which then sends an XMLHttp request to the XMLHttpRequest Object. At that point, the server interacts with the database via PHP, servlet, ASP.net, and other technologies. The data is RETRIEVED, and the server transmits it to the XMLHttpRequest Callback method in the form of XML or Jason data. The Data then is presented on the browser using HTML and CSS.



Discussion

No Comment Found