Ajax/ AJAX – An Introduction
Ajax/ AJAX is the acronym for Asynchronous JavaScript and XML. It is a Web 2.0 technique employed in developing interactive web applications. Web pages that have been developed using Ajax exchange data with the server behind the scene. Consequently, every time a user makes changes, they are incorporated without reloading of the whole web page.
Asynchronous: XML data loading and normal HTML and JavaScript web page loading are asynchronous. In other words, they do not interfere with each other.
JavaScript: JavaScript is a programming language. Ajax function calls are created using JavaScript.
XML: Data exchange in Ajax takes place in XML format.
Advantages of Ajax
1. A web page developed on Ajax has higher:
o Speed
o Interactivity
o Functionality
2. The HTML of a web page can be accessed/ produced in the browser itself. Thus, Ajax effectively decreases the bandwidth consumption.
3. With a jumble of techniques and languages, Ajax gives programmers the freedom to adopt and adapt features as per their requirement.
4. Ajax enables a programmer to have a neat separation among different elements of a web page.
o Data/ content to be uploaded: XML format
o Structure/ Format of a web page: HTML/ XHTML made available in the DOM
o Style (images, fonts, etc.): CSS
o Functionality: JavaScript/ HTTP/ XMLHttp
A few things to be kept in mind while using Ajax
1. The request-response interval should be minimal, with clear feedback to the user.
2. Back button and bookmarking are issues that have to be taken into account for dynamic web pages to be developed on Ajax.
3. Data that has to be indexed needs to be provided in a search engine friendly format. This is because search engines often skip JavaScript coded content that in turn is a main element of Ajax-based web sites.
Also read on MS blog:
Labels: ajax, technology, web 2.0