Ciao a tutti, ho realizzato un piccolo motore di ricerca fatto con 3 combo (http://www.euroscootermoto.it/m-nuovo.asp) viene richiamata una funzione in JS , il problema è che il primo ramo (che si riferisce a firefox), funziona correttamente, e quello che si riferisce ad explorer no...
..o meglio nel codice trova l'indice dell'elemento selezionato
nella prima combo ma non ne restituisce il valore!!!!
ma come è possibile?
grazie in anticipo a tutti
Ciao
---------------------------------------------------------------
<script language="javascript">
var liveSearchReq;
function cercatipo()
{
//document.write("1");
//var valorecampo = document.MOTOIT_Form1.EMARCA.options[document.MOTOIT_Form1.EMARCA.selectedIndex].value;
// branch for native XMLHttpRequest object
if (window.XMLHttpRequest) {
//document.write("2");
liveSearchReq = new XMLHttpRequest();
//document.write("3");
liveSearchReq.onreadystatechange = ricevitipo;
//document.write("4");
liveSearchReq.open("GET", "tiponuovo.asp",true);
//document.write("5");
liveSearchReq.send(null);
// document.write("6");
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
//document.write("7");
liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP");
if (liveSearchReq) {
//document.write("8");
liveSearchReq.onreadystatechange = ricevitipo;
// document.write("9");
liveSearchReq.open("GET", "tiponuovo.asp",true); //document.write("10");
liveSearchReq.send(); //document.write("11");
}
}
}
-----------------------------------------------------------------------