<script> var xmlHttp; function getsubdvr(str) { alert("function"); debugger; document.getElementById('ajax_loading').style.display='inline-Block'; xmlHttp=GetXmlHttpObject(); if(xmlHttp==null) { alert("Your Browser Does'nt support Ajax!"); return; } var url="getsubcat.php"; url=url+"?q="+str; //alert(url); xmlHttp.onreadystatechange=valuchange1; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function valuchange1() { if(xmlHttp.readyState==4) { alert(xmlHttp.responseText); //alert(xmlHttp.responseText); document.getElementById('subidlistdvr').innerHTML=xmlHttp.responseText; //alert(xmlHttp.responseText); document.getElementById('ajax_loading').style.display='none'; } } function GetXmlHttpObject() { var xmlHttp=null; try { xmlHttp=new XMLHttpRequest(); } catch(e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHttp"); } catch(e) { xmlHttp=new ActiveXObject("Microsoft.XMLHttp"); } } return xmlHttp; } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)