Jquery ajax

Content: jQuery

Posted On: Dec 10, 2010 Resource: PHPjQuery.com More (Source Content)

Ajax is nothing but send the request without page refreshing using javascript.
In simple or ordinary Ajax send the request and response using XMLHttpRequest object.
All request send through http.
See the simple ajax example:

function ajaxFunction() { var xmlhttp; if (window.XMLHttpRequest)   {   // code for IE7+, Firefox, Chrome, Opera, Safari   xmlhttp=new XMLHttpRequest();   } else if (window.ActiveXObject)   {   // code for IE6, IE5   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");   } else   {   alert("Your browser does not support XMLHTTP!");   } xmlhttp.onreadystatechange=function() { if(xmlhttp.readyState==4)   {   document.myForm.time.value=xmlhttp.responseText;   } } xmlhttp.open("GET","time.asp",true);

Related Posts: