ri-posto i codi incriminati
pagina test.asp
codice:<html> <head> <script type="text/javascript" src="selectcustomer.js"></script> </head> <body> CLICCA <div id="txtHint">Customer info will be listed here.</div> </body> </html>
selectcustomer.js
codice:var xmlhttp function showCustomer(str) { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="included_countvote_pop.asp"; url=url+"?id="+str; xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); } function stateChanged() { if (xmlhttp.readyState==4) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } function GetXmlHttpObject() { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari return new XMLHttpRequest(); } if (window.ActiveXObject) { // code for IE6, IE5 return new ActiveXObject("Microsoft.XMLHTTP"); } return null; }
il codice è stato preso da qui
ed è stato parzialmente modificato (soltanto test.asp)
praticamente ad ogni clic sul link CLICCA, vorrei che il contatore mi aumentasse di uno.
su 1 pc funziona e su altri 2 pc non succede niente, prende il valore iniziale e poi anche se clicco, resta il valore iniziale..
![]()


Rispondi quotando
