DesmoColo
25-10-2008, 14:17
Ho una funzione javascript scritta nel seguente modo:
function handleStateChange(){
if(xmlHttp.readyState == 4){
if(xmlHttp.status == 200){
alert("Richiesta AJAX ok!");
parseResults();
}
else{
alert("status="+xmlHttp.status);
alert("Ajax non funziona :-(");
}
}
}
Quando sono su IE, la richiesta va in porto, mentre su FF status = 0.
Sapete spiegarmi come mai?
function handleStateChange(){
if(xmlHttp.readyState == 4){
if(xmlHttp.status == 200){
alert("Richiesta AJAX ok!");
parseResults();
}
else{
alert("status="+xmlHttp.status);
alert("Ajax non funziona :-(");
}
}
}
Quando sono su IE, la richiesta va in porto, mentre su FF status = 0.
Sapete spiegarmi come mai?