| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 
 | <script type="text/javascript">
function getHTTPObject() {
  var xmlhttp;
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
      } catch (e) {
      xmlhttp = false;
      }
    }
    return xmlhttp;
  }
var http = getHTTPObject();
 
function moreinfo(type,id) {
  var url = "moreinfo.php"; 
  http.open("POST", url, true);
  http.onreadystatechange = handleHttpResponse;
  http.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
  http.send("man_id=" + id);
}
 
function handleHttpResponse() {
  if (http.readyState == 4) { 
  	alert(http.responseText) // ICI LA BOITE DE DIALOGUE RESTE VIDE !!!
    }
}
</script> | 
Partager