Miles to go ...

Arun Gupta is a Technology Evangelist for Web Services and Web 2.0 Apps at Sun. He was the spec lead for APIs in the Java platform, committer in multiple Open Source projects, participated in standard bodies and contributed to Java EE and SE releases.
« JAX-WS 2.1 is final | Main | JavaOne 2007 - Java... »

http://blogs.sun.com/arungupta/date/20061208 Friday December 08, 2006

What is AJAX ?

This is a follow up blog from here. It provides a brief description of the most prominent technology, AJAX, that enable the principles of Web 2.0.

AJAX stands for Asynchronous JavaScript and XML. This term was first introduced by Jesse James Garrett in February 2005. It is a set of technologies used to develop interactive web applications without requiring a complete page refresh. This is achieved by decoupling user's interaction with the web application and the web application's interaction with the server. The presentation control logic is embedded as JavaScript code snippets in the web page and the bulk of data is kept on the server. Any request from user to the web application that does not require a round trip to the server, for example data validation and displaying a different view of the pre-loaded data, is handled by this code. If data needs to be fetched from the server then this intermediate code makes an asynchronous request to the server without any interruption of user's interaction with the application. This allows a clear separation between presentation logic and the underlying data.

AJAX achieves this using the combination of following set of technologies:

  • XHTML and CSS for presentation
  • DOM for accessing parts of the page that needs to be refreshed
  • XMLHttpRequest for asynchronous exchange with the server
  • XML, Text or HTML as the format for data exchange
  • JavaScript to bind all of these pieces together.

There are several Ajax frameworks available that combines all these technologies together and ease the rapid development of Ajax-based applications. These frameworks offer JavaScript functions on the client-side to send request to the server and processes the requests, searches for the data and transmits them to the browser on the server-side. All of this done by hiding the differences between different browser and JavaScript runtime environments. Ajaxian.com has a survey of the most popular AJAX frameworks. These frameworks are getting richer and providing a comprehensive set of libraries ranging from DOM manipulation to animation framework to complicated layout widgets. However if there is a need to write your own custom widget then you can consider following the JavaScript recommendations for AJAX component writers. AJAX with the Java Platform explains the anatomy of an AJAX interaction in detail and has other useful resources on AJAX.

AJAX enables rich internet applications and is one of the most prominent technology to enable principles of Web 2.0. Read how Gmail, Google Suggest and Google Maps use AJAX to provide a richer, faster and more usable interaction. In my next blog entry, I'll talk about jMaki and my experience of developing a Web application using the recently released jMaki 1.0 beta.

Technorati: AJAX Sun Web 2.0

del.icio.us | furl | simpy | slashdot | technorati | digg
Comments:

[Trackback] In a previous blog, I talked about AJAX. You can read about different AJAX design strategies, their pros/cons and when to use. This blog introduces you to jMaki. Originally the project, jMaki, started as a wrapper for existing AJAX frameworks...

Posted by Arun Gupta's Blog on December 13, 2006 at 11:11 AM PST #

[Trackback] In my previous Web 2.0-related blogs, I talked about What is Web 2.0 ?, What is AJAX ? and AJAX: jMaki Framework. Switching gears, this blog will talk about another technology that enable the principles of Web 2.0, i.e....

Posted by Arun Gupta's Blog on December 20, 2006 at 10:01 AM PST #

[Trackback] Ajax is a popular term for past few months but is still being written incorrectly as "AJAX" (all capitals) instead of "Ajax" (camel case). I started using AJAX but then corrected myself and have been using Ajax since then. So...

Posted by Arun Gupta's Blog on April 20, 2007 at 06:32 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
« JAX-WS 2.1 is final | Main | JavaOne 2007 - Java... »

Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.

--> ajax ajaxworld conf eclipse fitness gem glassfish glassfishday hyderabad india indigo interoperability javaone javaone2008 jax-ws jmaki jpa jruby mac marathon metro microsoft mysql netbeans phobos photography presos railsconf ruby rubyonrails running runninglog runsfm screencast siliconvalleymarathon sun suntechdays swdp tango theserverside totd training traveltips v3 vista wcf web2.0 webservices webtier windows wsaddressing wsit youtube
Locations of visitors to this page

calendar

« September 2008
SunMonTueWedThuFriSat
 
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today
www.flickr.com
This is a Flickr badge showing public photos from ArunGupta. Make your own badge here.
Add to Technorati Favorites

Last 50