ciao a tutti
ho questo script
codice:
<script language="javascript" type="text/javascript">
var myRequest = null;
var IDSITO = new Array(0,1,2,3,4,5,6,7,8,9,10,11,12,13);
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)
{
var elemento = "paragrafo" + i;
e = document.getElementById(elemento);
e.innerHTML = myRequest.responseText;
}
}
function checklink()
{
myRequest = CreateXmlHttpReq(myHandler);
myRequest.open("GET","check.php?id=" + IDSITO[0], true);
myRequest.send(null);
}
</script>
come posso fare affinchè la funzione check link e quindi anche poi myhandler vengano eseguite per tutti gli elementi dell'array IDSITO ????
per se i controlli sono fatti uno alla volta funziona altrimenti no
spero possiate aiutarmi
ciauz