Mink Machine

Ajax debunked

After having seen a couple of months with the word Ajax buzzing everywhere, I believe it’s time to clear a few things out.

Ajax is a term coined by Jesse James Garrett at San Francisco-based company Adaptive Path in February 2005. It is commonly described as “asynchronous Javascript and XML”. I would rather say it’s a shorter way of writing “asynchronous JavaScript using XMLHttpRequest with CSS and DOM”.

In other words, it’s a combination of various technologies from every web developer’s toolbox. These items have been around for a while and they are certainly not new kids on the block.

Ajax in a bottle Ajax – now 10 percent more efficient than the competition.

XMLHttp was first introduced to the world as an ActiveX control in IE 5.0, allowing pages to send XML via the HTTP protocol. XMLHttpRequest was originally invented in 1998 to create a web-based version of Outlook, so it’s not exactly new.

It has taken a while for the industry to grasp the power of Ajax, and the foremost reason why it’s suddenly so hot right now is that we’ve started to do smarter web applications featuring rich user interfaces built on Ajax.

Google Maps is perhaps the most well-known Ajax application and definitely one of the things that started the buzzword avalanche.

Other popular examples are Gmail, Google suggest (as I mentioned previously in a post last year), Flickr and Orkut.

However, there are a few problems as well and most of them concern accessibility. Ajax applications inevitably involve running complex JavaScript code on the client. This doesn’t cope very well with the back button of your browser, thus breaking one of the most frequently used functions. Another well-known feature is displaying when the browser is working. With Ajax you will have to take care of that yourself (which some developers probably will forget or simply ignore to implement).

Considerations must also be made in regards to JavaScript engines. it will have to work on Rhino (Mozilla’s JavaScript engine), Internet Explorer’s engine and so on. You will get fatter clients, which will make the web application more vulnerable to lesser target machine specifications.

And last but not least, a tenth of web surfers don’t have JavaScript, so they will not be able to use your cool Ajax application.

And that’s not even all. There are a lot more things to consider with Ajax development. But enough of all this negative thinking. I think that Ajax is a very useful technique and we will see a lot more of it in the near future, if developers tend to take it serious and use it as a tool instead of a toy.

2 comments

  • avatar
    didre
    28 Dec, 2005

    Thanks for your great site!

  • avatar
    Tom
    07 Mar, 2006

    I really enjoy reading your articles. Keep up the great work.
    TBoardenson

Post a comment

Your email address will not be published. Required fields are marked *

Featured stories

Conquering Machu Picchu

"A life-long dream came true this morning, as I stood upon the mountain looking down at Machu Picchu. I felt like some strange mix between Indiana Jones and a small boy, gazing down upon the final treasure of the Incas."

The dark days of Sarajevo

"The city survived on the edge of annihilation and has started to recover, but the stone walls still seem to cry out in lament of all the horrible things they have seen."

New Years Eve in Sydney

"Opera House is seen in front of the massive fireworks in the harbor area, celebrating the 75th anniversary of the Harbour Bridge."

The urban maze of Tangier

"There are exciting things waiting around every corner and my bucket list is long, but the Medina has a mindset of its own regarding time and space."

Greetings from Moldova

"But Chisinau is an unexpected gem in the wilderness. Even though Moldova is one of the poorest countries in Europe, the capital has its fair share of impressive buildings and post-Soviet architecture."

Vineyards of southern France

"Not far from Sauternes is the village of Saint-Émilion, also a famous wine region but what got me hooked was their impressive limestone caves."