Forse non mi sono spiegato bene , tu dici MA TU PUOI COME VUOI, ok invece di una tabella uso campi Input ma il problema resta perchè ora spiego meglio:
PAGINA 1:
<script>
function showCustomer(str)
{
if (str=="")
{
document.getElementById("txtHint").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("txtHint").innerHTML=this. responseText;
}
}
xmlhttp.open("GET","cerca.asp?q="+str,true);
xmlhttp.send();
}
</script>
<form>
<input name="nome" >
<input name="cognome" >
<input name="codice" onKeyup="showCustomer(this.value)">
<div id="txtHint"></div>
</form>
Dove presente <div id="txtHint"></div> C'è il risultato della pagina CERCA.ASP
CERCA.ASP
Ma questi 2 campi il form non li considera.
<input type="hidden" name="Descrizione" value="<%=rs.fields("Descrizione")%>">
<input type="hidden" name="Qta" value="<%=rs.fields("Qta")%>">
Grazie

Rispondi quotando