1 2 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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
<script type="text/javascript">
function Loadcells(str) {
var id=ligne.options[ligne.selectedIndex].id;
//alert(id);
if (str=="") {
document.getElementById("cellule").innerHTML="";
return;
}
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else { // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (this.readyState==4 && this.status==200) {
document.getElementById("cellule").innerHTML=this.responseText;
}
}
xmlhttp.open("GET","Ajaxloadcells.php?line="+ligne.options[ligne.selectedIndex].id+"&idtool=<?PHP echo $Tool?>&idtooltype=<?PHP echo $id_tooltype?>", true);
xmlhttp.send();
}
</script>
<script type="text/javascript">
function Loadlocation(str2) {
var id2=cellule.options[cellule.selectedIndex].id;
//alert(id);
if (str2=="Sélectionner une cellule") {
document.getElementById("location").innerHTML="";
return;
}
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else { // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (this.readyState==4 && this.status==200) {
document.getElementById("location").innerHTML=this.responseText;
}
}
//alert(str);
xmlhttp.open("GET","ajaxloadlocationtool.php?idline="+ligne.options[ligne.selectedIndex].id+"&idcell="+cellule.options[cellule.selectedIndex].id+"&idtool=<?PHP echo $Tool?>", true);
xmlhttp.send();
}
</script> |
Partager