ciao a tutti,
sto lavorando con una pagine jsp e ho inserito un javascript che deve lavorare un parametro di una form
(responseText dovrebbe restutuire il parametro?)var xmlHttp;
if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
alert("primo if");
var html = Categoria;
html.innerHTML =xmlHttp.responseText;
} else if (window.ActiveXObject) { alert("primo else")
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
} else { alert("secondo else")
document.write("browser not supported");
}
xmlHttp.onreadystatechange=function() {
if (xmlHttp.readyState == 4) {
var html = Categoria;
html.innerHTML =xmlHttp.responseText;
alert(xmlHttp.responseText);
}
}
il parametro (Categoria) deve essere rigirato alla pagina jsp; sto usando questo frammento di codice ma non funziona, qualcuno sa darmi un consiglio?
Grazie!