Originariamente inviato da TrueLies
loadActiveIngredient
cosa è, manca anche lui.
Ci vorrebbe una struttura dove si possa identificare il problema senza dover inseguire tutto. Ti aiuto volentieri ma se non riesco a riprodurre la situazione rischio di andare a casaccio con mere ipotesi.
codice:
function GetXmlHttpObject(){
var xmlHttp=null;
try{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e){
// Internet Explorer
try{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e){
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}
function stateChanged001(){
if (xmlHttp001.readyState==4){
//document.getElementById("productSel" + document.getElementById("productDivID").value).innerHTML=xmlHttp001.responseText;
document.getElementById("id_ai_pr" + document.getElementById("productDivID").value).innerHTML=xmlHttp001.responseText;
}
}
function loadProduct(objID, objID2, loadObjID){
xmlHttp001=GetXmlHttpObject()
if (xmlHttp001==null){
alert ("Your browser does not support AJAX!");
return;
}
cfnID = document.getElementById("fnID").value;
cparID = document.getElementById("parID").value;
var url = "adminAdrRecProduct.php";
url=url+"?sid="+Math.random();
url=url+"&fnID="+cfnID;
url=url+"&parID="+cparID;
url=url+"&objID="+objID;
url=url+"&objID2="+objID2;
url=url+"&loadObjID="+loadObjID;
document.getElementById("productDivID").value = loadObjID;
xmlHttp001.onreadystatechange=stateChanged001;
xmlHttp001.open("GET",url,true);
xmlHttp001.send(null);
}
function stateChanged003(){
if (xmlHttp003.readyState==4){
//document.getElementById("activeIngrSel" + document.getElementById("activeIngrDivID").value).innerHTML=xmlHttp003.responseText;
document.getElementById("active_ingr_id" + document.getElementById("activeIngrDivID").value).innerHTML=xmlHttp003.responseText;
}
}
function loadActiveIngredient(objID2,loadObjID){
xmlHttp003=GetXmlHttpObject()
if (xmlHttp003==null){
alert ("Your browser does not support AJAX!");
return;
}
cfnID = document.getElementById("fnID").value;
cparID = document.getElementById("parID").value;
var url = "adminAdrRecActiveIng.php";
url=url+"?sid="+Math.random();
url=url+"&fnID="+cfnID;
url=url+"&parID="+cparID;
url=url+"&objID2="+objID2;
url=url+"&loadObjID="+loadObjID;
document.getElementById("activeIngrDivID").value = loadObjID;
xmlHttp003.onreadystatechange=stateChanged003;
xmlHttp003.open("GET",url,true);
xmlHttp003.send(null);
}
function stateChanged004(){
if (xmlHttp004.readyState==4){
//document.getElementById("strenghtSel" + document.getElementById("strenghtDivID").value).innerHTML=xmlHttp004.responseText;
document.getElementById("strength_id" + document.getElementById("strenghtDivID").value).innerHTML=xmlHttp004.responseText;
}
}
function loadStrenght(objID2,loadObjID){
xmlHttp004=GetXmlHttpObject()
if (xmlHttp004==null){
alert ("Your browser does not support AJAX!");
return;
}
cfnID = document.getElementById("fnID").value;
cparID = document.getElementById("parID").value;
var url = "adminAdrRecStrength.php";
url=url+"?sid="+Math.random();
url=url+"&fnID="+cfnID;
url=url+"&parID="+cparID;
url=url+"&objID2="+objID2;
url=url+"&loadObjID="+loadObjID;
document.getElementById("strenghtDivID").value = loadObjID;
xmlHttp004.onreadystatechange=stateChanged004;
xmlHttp004.open("GET",url,true);
xmlHttp004.send(null);
}
function stateChanged005(){
if (xmlHttp005.readyState==4){
//document.getElementById("routeSel" + document.getElementById("routeDivID").value).innerHTML=xmlHttp005.responseText;
document.getElementById("route_id" + document.getElementById("routeDivID").value).innerHTML=xmlHttp005.responseText;
}
}
function loadRoute(objID2,loadObjID){
xmlHttp005=GetXmlHttpObject()
if (xmlHttp005==null){
alert ("Your browser does not support AJAX!");
return;
}
cfnID = document.getElementById("fnID").value;
cparID = document.getElementById("parID").value;
var url = "adminAdrRecRoute.php";
url=url+"?sid="+Math.random();
url=url+"&fnID="+cfnID;
url=url+"&parID="+cparID;
url=url+"&objID2="+objID2;
url=url+"&loadObjID="+loadObjID;
document.getElementById("routeDivID").value = loadObjID;
xmlHttp005.onreadystatechange=stateChanged005;
xmlHttp005.open("GET",url,true);
xmlHttp005.send(null);
}
function stateChanged006(){
if (xmlHttp006.readyState==4){
//document.getElementById("formSel" + document.getElementById("formDivID").value).innerHTML=xmlHttp006.responseText;
document.getElementById("form_id" + document.getElementById("formDivID").value).innerHTML=xmlHttp006.responseText;
}
}
function loadForm(objID2,loadObjID){
xmlHttp006=GetXmlHttpObject()
if (xmlHttp006==null){
alert ("Your browser does not support AJAX!");
return;
}
cfnID = document.getElementById("fnID").value;
cparID = document.getElementById("parID").value;
var url = "adminAdrRecForm.php";
url=url+"?sid="+Math.random();
url=url+"&fnID="+cfnID;
url=url+"&parID="+cparID;
url=url+"&objID2="+objID2;
url=url+"&loadObjID="+loadObjID;
document.getElementById("formDivID").value = loadObjID;
xmlHttp006.onreadystatechange=stateChanged006;
xmlHttp006.open("GET",url,true);
xmlHttp006.send(null);
}