»Dotnet Ads
»Message Boards
Message Boards
Dotnet Books
»Member Details
Register
Login
LogOut
Submit Code
Submit Jobs
Submit Projects
»Competition
Community
Winners
Prizes
Write For Us
Members
»Other Resources
Links
Dotnet Resources
|
Ajax Basics how it worksajax is latest hot fan of programmers
better,faster and more interactive applications only through Ajax *
before a programmer start ajax coding just he/she has to know some basic concepts of html/xhtml
and javascrpt etc.
ajax is for or simply its ONLY for better,faster and more interactive applications
only thing is javascript act s as mediater
clearly javascript deal with server here
it uses JavaScript XMLHttpRequest object.
twist is this happens and gives output in a webform with out reloading the webpage.
The AJAX technique makes Internet applications smaller, faster and more user-friendly.
ajax webstandards are browser supporting and some webstandards are
JavaScript
XML
HTML
CSS
ajax applictions are platfor independent(kool right ?)
create the object with XMLHttp=new XMLHttpRequest().
This is for the Firefox, Opera, and Safari browsers.
If that fails, try xmlHttp=new ActiveXObject("Msxml2.XMLHTTP") which is for Internet Explorer 6.0+,
if that also fails, try xmlHttp=new ActiveXObject("Microsoft.XMLHTTP") which is for Internet Explorer 5.5+
we have three important properties of the XMLHttpRequest object.
The onreadystatechange Property
After a request to the server, we need a function that can receive the data that is returned by the server.
The readyState Property
The readyState property holds the status of the server's response. Each time the readyState changes, the onreadystatechange function will be executed.
The responseText Property
The data sent back from the server can be retrieved with the responseText property.
To send off a request to the server, we use the open() method and the send() method.
The open() method takes three arguments like xmlHttp.open("GET","srilatha.asp",true);
so friends u r now comfortable with ajax right?
|