Hola David. Hice lo que me dijiste y hace lo que quiero, por cada pasada del bucle hace la lectura Ajax, pero tengo un problema, en http.status me asigna 500 (error):
    
Código Javascript
:
Ver original- var numTarea; 
- var enProceso = false; // lo usamos para ver si hay un proceso activo 
- var http = getHTTPObject(); // Creamos el objeto XMLHttpRequest 
-   
- function getHTTPObject() { 
-     var xmlhttp; 
-     /*@cc_on 
-     @if (@_jscript_version >= 5) 
-     try { 
-         xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
-     } catch (e) { 
-         try { 
-             xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
-         } catch (E) { xmlhttp = false; } 
-     } 
-     @else 
-     xmlhttp = false; 
-     @end 
-     @*/ 
-     if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { 
-         try { 
-             xmlhttp = new XMLHttpRequest(); 
-         } catch (e) { xmlhttp = false; } 
-     } 
-     return xmlhttp; 
- } 
-   
- function verificaUsuario(dd) { 
-      
-     if (!enProceso && http) {  
-         var url = "ajax.aspx?fecha=" + dd + "/" + (mes + 1) + "/" + ano;         
-         http.open("GET", url, false); 
-         http.onreadystatechange = handleHttpResponse; 
-         http.send(null);   
-     } 
- } 
-   
- function handleHttpResponse() { 
-     if (http.readyState == 4) { 
-         alert(http.status); 
-         if (http.status == 200) { 
-              
-             if (http.responseText.indexOf('invalid') == -1) { 
-                 var results = http.responseText.split(","); 
-                 numTarea = results[0]; 
-                 enProceso = false;                 
-             } 
-         } 
-     } 
-     
- } 
Código HTML:
Ver original- for (i=0;i<10;i++){ 
-       
-     verificaUsuario(i)  
-   
-     document.write(numTarea); 
-   
-     document.write(i); 
-   
- } 
En la página ajax.aspx está saliendo bien el resultado. El problema es que no entra en    
Código Javascript
:
Ver original- if (http.status == 200) { 
-              
-             if (http.responseText.indexOf('invalid') == -1) { 
-                 var results = http.responseText.split(","); 
-                 numTarea = results[0]; 
-                 enProceso = false;                 
-             } 
-         } 
Alguna idea?