salve
dovrei passare il dato di un campo, ho modificato questo script ma non funziona, dove sbaglio?
Graziecodice:<script> function showCustomer(cal) { if (cal=="") { document.getElementById("ordini").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { document.getElementById("ordini").innerHTML=this.responseText; } } var cal = document.getElementById("search"); xmlhttp.open("GET","cerca.asp?q="+cal,true); xmlhttp.send(); } </script> <input type="text" id="search" placeholder="Inserisci il codice da cercare" name="Cod_Art" size="64" > <div class="btn-toolsetbis" onClick="showCustomer(this.value)"><strong>Cerca</strong><div>

Rispondi quotando