salve,
lanciando una pagina php che fa uso di ajax, questa funziona senza problemi in locale, usando wamp, mentre in remoto nel div 'destinazione' viene ricaricata l'intera pagina attuale,
come se la response fosse il codice dell'intera pagina chiamante...

come mai? problema di Apache/1.2.37 ???


function createObject() {
var tipo_richiesta;
var browser = navigator.appName;
if(browser == “Microsoft Internet Explorer”){
tipo_richiesta = new ActiveXObject(”Microsoft.XMLHTTP”);
}else{
tipo_richiesta = new XMLHttpRequest();
}
return tipo_richiesta;
}

var http = createObject();

function richiedi() {
http.open(’get’, ‘solocodicediv.php’);
http.onreadystatechange = handleResponse;
http.send(null);
}

function handleResponse() {
if(http.readyState == 4){
var response = http.responseText;
document.getElementById(’dati’).innerHTML = response;
}
}