Ciao ragazzi, ho un problemino;
Io ho questa "libreria" AJAX fatta da me....


function verifyMail(mail, user, richiesta, IdAnnuncio)
{
var xmlHttp;

try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("Your browser does not support AJAX!");
return false;
}
}
}

xmlHttp.onreadystatechange=function()
{



if(xmlHttp.readyState < 4)
{
result=xmlHttp.responseText;

document.getElementById('mail').style.display = "block" ;

if(result == "NULL") {
//
document.getElementById('mail').innerHTML = " <div class=\"loading\"></div> " ;
}
else {
document.getElementById('mail').innerHTML = " <div class=\"loading\"></div> " ;
}
}

if(xmlHttp.readyState==4)
{
result=xmlHttp.responseText;

document.getElementById('mail').style.display = "block" ;

if(result == "NULL") {
//
document.getElementById('mail').innerHTML = "MAIL NON INVIATA" ;
}
else {
document.getElementById('mail').innerHTML = result;
}
}
}
xmlHttp.open("GET","serviceController.php?do=invio Mail&user="+user+"&mail="+mail+"&richiesta="+richi esta+"&idAnnuncio="+IdAnnuncio,true);
xmlHttp.send(null);
}

Bene su FF e Safari nessun problema nella gestione degli stati ... mentre su IE ho problemi a gestire i stati minori di 4 grazie.