AJAX – Asynchronous Java Script and XML

AJAX is one of the hottest buzzword in the IT especially in the Web Development. AJAX has become so much popular especially with the use of this technology in Google Suggest, Gmail, Yahoo Mail, Windows Live, Google Maps etc. AJAX stands for Asynchronous JavaScript and XML.

Ajax is not a technology in itself, but a term that refers to the use of a group of technologies. AJAX is not a new technology as the major technologies like HTML, XML, DOM, XMLHttp and JavaScript that is used in AJAX have been around for quite a long period of time. AJAX is not tied to any programming language or Data Format and is defined by partial screen update and asynchronous communication.

The term AJAX was coined by Jesse James Garrett in February 2005.

The older Web Applications require the reloading of the entire page with every post back, that is in order to handle any server side event; you must post the entire page back to the server. Although this approach is powerful, this has its own drawback which leads to the problem related to the User experience and performance. The AJAX approach is all about giving the user a better experience. This technique reduces the roundtrips to the server especially the full post backs and thus enables more interactive and responsive web applications.

The Examples of the Usage of AJAX are

  • Gmail, Yahoo Mail, Windows Live etc.Auto complete Features in most of the Search Engines.
  • Google Maps, MSN Virtual Earth etc.
  • Flickr Photo sharing website.
  • And many more.

( Figure 1) : Implementation of AJAX in Google Suggest .

google

AJAX technique uses the following technologies

  • HTML and CSS – HTML stands for Hyper Text Markup Language and is used for creating static web pages. CSS stands for Cascading style sheet and is used to style the website like setting the background colour, font etc.
  • Java Script – A Client side technology that is used specially the client side operations like Validations etc.
  • DOM – Document Object Model is used with the client side scripting language to display and interact with the information that is presented.
  • XMLHttpRequest is used to asynchronously transferring the data with the server. There are few frameworks that use IFrame alternatively to achieve the data transfer between the server and the Application.
  • XML , JSON – XML stands for Extensible Markup language and is open standard for data exchange in the internet and enables the users to create their own tags. JSON stands for Java Script Object Notation and is a light weight component and is an alternative format for data.

The major advantage of using AJAX is the improved user experience as the Web Applications behave more like a traditional desktop application. With this technique page can be updated dynamically allowing faster response for User interaction. The AJAX pages appear to load relatively faster .The load on demand concept reduces the bandwidth usage for the Web Application. It solves the problems of Slow Web Apps, Poor User Experience, Wasted Resources and Un-Familiar User Interfaces.

An AJAX framework helps to build the web applications easily that use AJAX. Data is exchanged between the server and the application through the JavaScript requests. These frameworks provide the library that eases the developers work in developing the AJAX enabled Web Applications.

Few Examples of these are the GWT, Ajax tool Kit, DWR, YUI (Yahoo User Interface) etc.

For example Microsoft’s AJAX Tool Kit provides a rich set of Extender Controls for implementing AJAX functionality and can be used with the existing Controls in ASP.NET.

These controls include Auto complete Textbox, Modal Popup Control, Watermarked Textbox etc.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

One Response

  1. Ted Burrett April 24, 2009 Reply

Leave a Reply


x

Interesting BlogPosts to read

Google Announces National Finalists of Doodle4Google Contest 2016
Google India today announced the names of the twelve national finalists of the 8th edition of its an...
Download - Pokemon Go for for Windows 10 (Third Party app)
Pokemon Go is one of the popular AR games for android and iOS devices and now , the game is made ava...
Open Wordpad from command line in Windows
You can use the command "Write" from command line in Windows to open the WordPad application.D:\>...