java scipt for ajax in asp.net
-
hi sir, please help me sir please send me the java script for accessing the record from server like ajax.i mean i want to replace my ajax with java script. sir please send me the java scipt for ajax in asp.net for textbox control.
-
hi sir, please help me sir please send me the java script for accessing the record from server like ajax.i mean i want to replace my ajax with java script. sir please send me the java scipt for ajax in asp.net for textbox control.
var getXmlHttpObject = function () { try { return new XMLHttpRequest(); } catch(e1) { try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e2) { try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e3) { return false; } } } } var xmlHttp = getXmlHttpObject(); xmlHttp.open('GET', 'getDetails.aspx', true); xmlHttp.onreadystatechange = readyStateChange; xmlHttp.send(null); var readyStateChange = function () { if(typeof xmlHttp == 'undefined' || !xmlHttp) return; if(xmlHttp.readyState == 4 || xmlHttp.readyState == 'complete') { var result = xmlHttp.responseText; var status = xmlHttp.status; if (status != 200 && status != 304) { if(status != 0) alert('Http Error : ' + status); } else callBack(result); } } function callBack(html) { // Do Anything }
We Can Do Anything, If We Want It
Easy Web Services in .net 2 - The Code Project - C# WebServices