Grazie
con ajax sono riuscito a chiamare il file.php. Ora ho solo un ultimo problema, visto che da specifiche non posso usare innerHTML come posso sostituirlo?
codice:
function ajaxGestore(str){
var xmlHttp;
try{
xmlHttp = new XMLHttpRequest();
}
catch(e){
try{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
window.alert("il tuo browser non supporta AJAX!");
return false;
}
}
}
xmlHttp.onreadystatechange = function(){
if(xmlHttp.readyState == 4){
document.getElementById("bodyRoom").innerHTML = xmlHttp.responseText;
}
}
xmlHttp.open("GET", "vittoria.php?q="+str, true);
xmlHttp.send();
}