Spero che sia la sezione giusta questa.. per chiedere come mai questo codice:
var url = "www......... file.php"
var x_object2 = null;
if(window.XMLHttpRequest){
x_object2 = new XMLHttpRequest();
}else if(window.ActiveXObject){
x_object2 = new ActiveXObject("Microsoft.XMLHTTP");
}else{
alert('AJAX Error');
return;
}
x_object2.open("POST",url,true);
x_object2.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
x_object2.send(null);
x_object2.onreadystatechange = function(){
if(x_object2.readyState==4){
if(x_object2.status==200){
document.getElementById('content').innerHTML = x_object2.responseText;
}
}
}
non funziona in un applicazione Adobe AIR.... cosa devo fare con AIR?!?! aiutooo