Make the web work for you

John's insights into the what's going on on the internet, internet news and opportunities.

Sunday, 8 April 2007

What is AJAX?

Busily working away on our first substantial AJAX project and aware that this relatively new technology isn't particular well understood, often even by the techies, I think it's time to try and give a bit of a beginners guide to it (in no more than three paragraphs).

It is an acronym of course (this is the www after all), but the actual name may confuse more people than it helps. The important letter to take from acronym though is the first "A" which stands for asynchronous. AJAX essentially allows the website (or program) to be working on one thing while a user is doing something else. E.g. if you add an item to your shopping basket, you can continue to browse and even add more items to your basket while the program calculates your basket total, delivery amount and tax etc.

You'll start to see more and more 'mini-baskets' appearing on the page alongside all of the products that are for sale - this part of the page will update when you add a product to the basket, but as the rest of the page doesn't need to update, by using AJAX we can avoid refreshing the whole page and simply transfer information between the server and your computer to update the price in the basket. Therefore we're sending less data = quicker experience.

So AJAX is quicker...
It can also add a number of features to the site. There are too many to mention all of them and so far many of them have added little value to the user experience of the site, but its certainly something we'll be keeping a close eye on. Our particular example uses AJAX to reduce the number of refreshes that are required, as described above in the basket example. Our early tests indicate a much more responsive site.

I'll keep up-to-date with new advances with AJAX (it's one of the most talked about technologies these days, and is being heavily used by Google, Yahoo! and many other web companies large and small are taking advantage of it).

And finally...

Happy Easter!

Labels: , ,