Thursday, February 10, 2011

AJAX - What's the buzz all about?

In the era of high-tech words buzzing around - there is a chance you might have come across AJAX. Surely, AJAX is one of the technologies that are being widely adopted and used. At first glance, you might be thinking:

What is AJAX?

I am not just going to say it stands for Asynchronous Javascript And XML... If you have worked over web applications (or atleast have used one), for each dynamic content to be fetched from web server, you need to make a call to a specific page. The call (or request) in return, sends you a complete page (response). Traditionally, it would refresh or reload a webpage for each new request. Simply put forward, you click a link, you make a request and you wait for the server to respond. This is called the "call-and-response" interaction model. AJAX, as a down-to-earth intro, is a technique in which your web application interacts with your web server - 'behind the scenes'. This means, while you are viewing a web-page - it is 'silently' posting and retrieving data from the webserver without letting you know (i.e. without refreshing the page). This is the AJAX-way of interacting.

why are we so hearing about ajax these days?

Well, the basic fact, AJAX is a 'technique', and not a 'new' tool. The technique is based on simple JavaScript and XML usage - which has been around since 1997-98. This approach has recently came in a more wider 'public' view after it was used 'extensively' in G-mail (an ajax-based web-mail client)

Conclusion


AJAX makes applications behave similar to that of a desktop application. A bridge between web-apps and desktop-apps, you might say. With javascript and xml combined, possibilities are end-less - which are yet to be exploited to its fullest.

No comments:

Post a Comment