AJAX CODE

<script language="javascript" type="text/javascript">

var actNo="";
function getXMLHTTP() { //fuction to return the xml http object
 var xmlhttp;
 if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
     xmlhttp=new XMLHttpRequest();
    }
 else
   {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
     }  
 return xmlhttp;
}

var req = getXMLHTTP();
 function getdetails(pay_type) {
  var strURL="getwithdrawdetails.php?pay_type="+pay_type;
 
  req.onreadystatechange = statechanged;  
  req.open("GET", strURL, true);
  req.send(null);
 }

 function statechanged(){
  if (req.readyState == 4) {
   // only if "OK"
   document.getElementById("withdrawdetails").innerHTML = req.responseText;
  }
 }
</script>

Comments

Popular posts from this blog