1. It enables in developing rich internet applications. 2. It enables dynamic web application development. 3. It improves the performance of the web application. 4. Here no plug in is required. 5. It provides real time updates.
1. User does not know that updates will occur. 2. User does not notice an update. 3. User cannot find the updated information. 4. Unexpected changes in focus.
Pros: 1. Ajax allows the web application to interaction with the data on the server. 2. For office style applications user’s data is stored on a reliable server accessible from any web browser. 3. It makes the web application more and more real application. Cons: 1. It is very tough to make compatible to all browsers. 2. Should have low latency connection into the server. 3. Can be server intensive. 4. Limited capabilities like multimedia and interaction with web-cams, printers and real time graphics. 5. Much waiting time for log in. 6. Problems with forward and backward buttons and bookmarks. 7. Not easy for low skilled raw developers. 8. Too many codes make the browser slow. 9. Everybody cannot do it.
Steps for setting up Ajax transaction: 1. Create an XMLHttp request object. 2. Set up the request’s on ready change function. 3. Open the request. 4. Send the request.
An Ajax transaction involves the client sending an asynchronous HTTP request and the server responding with XML. Client processes the resulting XML document tree. Ajax applications run entirely on the client except when they need to access data on the server. Ajax applications can treat the server as a database. Well written Ajax applications running with a fast internet connection can be as nice to use as traditional applications. Ajax is a broad group of technologies that can be used to implement a web application that communicates with server in the background without interfering the current state of the page. Ajax application has changed the dynamic web applications functionalities. Some popular Ajax frameworks are- JQuery, ASP.NET AJAX, Spry framework, Dojo Toolkit, angular JS etc. a PHP Ajax framework is able to deal with database, search data and build pages and publish the pages or return data to the XMLHttpRequest object. Quicknet is an Ajax framework that provides secure data transmission and uses PHP on server side. Xajax uses only XML format on server side. Sajax framework provides easy integration of function.