Posts

Showing posts from November 13, 2010

10 Practical Uses For AJAX

Image
AJAX has gotten more and more popular over the years, and has allowed web applications to act more and more like desktop applications. AJAX can provide a lot of additional functionality that could not be accomplished any other way. What Is AJAX? How Does It Work? AJAX stands for Asynchronous JavaScript and XML. It is used for allowing the client side of an application to communitcate with the server side of the application. Before AJAX, there was no way for the client side of a web application to communicate directly with the server. Instead, you would have to use page loads. With AJAX, the client and server can communicate freely with one another. Here is how the usual AJAX script goes: Some action triggers the event, like the user clicking a button. The AJAX call fires, and sends a request to a server-side script, using XML The server-side script (PHP, ASP, or whatever) takes the input from JavaScript, can access the database if it needs to, and processes the data. Using