jhylands

Untitled

Feb 16th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var xmlhttp;
  2.                         if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
  3.                             xmlhttp=new XMLHttpRequest();
  4.                         }
  5.                         else{// code for IE6, IE5
  6.                             xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  7.                         }
  8.                             xmlhttp.onreadystatechange=function(){
  9.                             if (xmlhttp.readyState==4 && xmlhttp.status==200){
  10.                                                                 var resp = xmlhttp.responseText;
  11.                                 document.getElementById("die").innerHTML=resp;
  12.                                     senddata(resp);
  13.                                                         }
  14.                         }
  15.                         xmlhttp.open("GET","scripts/die.php" ,true);
  16.                         xmlhttp.send();
Advertisement
Add Comment
Please, Sign In to add comment