ok ci ho provato ma se gli metto un indirizzo remoto nn funziona nn capisco il perche ti posto il mio codice.......
codice:
<script> var myRequest = null;
// Create the XML HTTP request object. We try to be
// more cross-browser as possible.
function CreateXmlHttpReq(handler) {
var xmlhttp = null;
try { xmlhttp = new XMLHttpRequest(); }
catch(e) { try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
catch(e) { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } } xmlhttp.onreadystatechange = handler; return xmlhttp; }
function myHandler() {
if (myRequest.readyState == 4 && myRequest.status == 200) { alert(myRequest.responseText); } }
function esempio3() { myRequest = CreateXmlHttpReq(myHandler);
myRequest.open("GET","http://indirizzo_ip/autoparco/encrypted/Aggiornamento/pippo.php"); myRequest.send(null); } </script>
<body onload="esempio3()" > </body>
se faccio cosi nn mi funziona nn fa nulla mi sapresti dire il perche? sto facendo un po di ricerche ma niente