0

i have xmlhttp status==500 and not responsetext,my showtable.php echo a table with different content in several conditions.

$("#host-type-list").click(function(){
   var hostvalue=$("#selected-host").text();
   if(window.XMLHttpRequest) {
      xmlhttp=new XMLHttpRequest();
   }
   else {
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }
   xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
        document.getElementById("tbldescription").innerHTML = xmlhttp.responsetext;
     }
   }
   xmlhttp.open("GET","showtable.php?req="+hostvalue,true);
   xmlhttp.send();
});
RiggsFolly
  • 89,708
  • 20
  • 100
  • 143
Farzaneh Pichlou
  • 2,158
  • 3
  • 13
  • 16

0 Answers0