- AJAX is not a new language but just a new way to use existing standards. With AJAX you can create better, faster and more user friendly web applications.
- AJAX is based on Java script and HTTP requests AJAX Uses Java script to send and receive data between Web browser and Web Server.
- AJAX techniques makes Web pages more responsive by exchanging data with the web server behind the scene, instead of reloading on entire web page each time a user makes a changes.
- AJAX is runs in your browser It uses asynchronous data transfer (HTTP requests) between the information from the server instead of whole pages. This application makes Internet applications smaller, faster and more user friendly
- AJAX Applications are browser and platform independent (Cross Platform, Cross Browser Technology)
- AJAX uses following open standards: Java Script, XML, HTML, CSS
The Open Standards used in AJAX are well defined, supported by all major browser.
Creating a XMLHttpRequest object:
Different browser use different method to create an XMLHttpRequest object
XMLHtpp = new XMLHttpRequest()
else if (windows.ActionxObject)
XMLHttp = new ActiveXObject ("Microsoft.XMLHTTP")
Create the object the Microsoft way, available in IE-6 and above.
XMLHttp = new ActiveXObject ("Msxml2.XMLHTTP")
If this catches error, then try to use the older way (IE 5.5 and old)
XMLHttp = new ActiveObject ("Microsoft.XMLHTTP")
If XMLHttp still has a null value, try to create the object in the standard way like below:
XMLHttp = new XMLHttpRequest()
XML HttpRequest Method :
Then open () method: The open () method setup a request to web server.
The send () method: The send () method sends a request to the server.
The abort () method: The abort () method abort the current server request.
Ready State Description
0 ==>The request is not initialize.
1 ==> The request has been setup.
2 ==> The request has been sent.
3 ==> The request is in process state.
4 ==> The request is completed.