Friday, February 16, 2007

The Future Is Now

AJAX is a coined term that neatly wraps up the cumulation of several web technologies in order to provide users with a faster, richer and more effective web experience. Web developers themselves are starting to see this group of technologies as the next step forward in website evolution - and they would be right.

The future of the web lies in the hands of developers who aren't afraid to embrace the ability to deliver websites to end-users in a fresh, funky and exciting way. AJAX (Asynchronous Javascript and XML) allows the developer to update sections of a web page without refreshing it. This is very handy in delivering content faster and more effectively. Only a small amount of data needs to be retrieved, rather than a whole page. Think: How many times have you gone to a website, read the news and clicked a news article? How long did that page take to load? With AJAX, content can be retrieved much faster than the classic approach.

Many of the larger companies are starting to utilise this turn in the industry. Big players like Google, Yahoo and Microsoft are all implementing this concept in order to provide their users with the fastest content possible. Seen Google Maps? They utilise AJAX in order to provide users with sections of the map. If you move around you can see the area you're looking at is broken up into tiles. The application itself requests only a small area - when you move, instead of refreshing the page, it makes another request to the Google Maps servers for the images you need to view. Impressive.

The Google Maps example is a fairly extravagant one but demonstrates in full what AJAX is capable of. On a more modest scale AJAX can be used to validate form data as its entered, or you could provide users with suggestions for what they might be searching for as they type it in. This makes for a much more friendly and intuitive user experience and allows users to avoid the frustrations with things like email registrations. In a classic sense, if a user's desired username or email is in use, they wait for the page to refresh - only to find out that their wish is not available! AJAX allows users to find out instantly whether they can use the information they've entered or not. However, despite its rather obvious benefits - AJAX has some nasty pitfalls.

Users who don't have Javascript enabled, or do not have Javascript capabilities in their browser for example, are not able to utilise AJAX. Hence, Google Maps would not work and our great data validation script for the user registration would fail. Also, development for heavy AJAX applications can be rather time-consuming as it requires development on two fronts: Javascript that handles the requests for the browser and server-side scripting which handles the calls from the Javascript framework.

No comments: