Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
chicoxml
Posts: 227
Registered: ‎09-03-2010
My Device: Not Specified

problem XMLHttpRequest timeout

hello,

 

here I have another one of my problems of connections.

 

I am trying to look for the complete list of my products with the following code.

 

 

 peticion_http = new XMLHttpRequest(); 

 peticion_http.onreadystatechange = muestraContenido; 

 peticion_http.open('GET', 'http://10.0.0.5/app/productos.php');   

 peticion_http.send(null);
 

 function muestraContenido() { 

          if(peticion_http.readyState == 4) { 

              if(peticion_http.status == 200) {   

                alert(peticion_http.responseText); 

              }     

      }       

}

 

after 00:02: 25 the muestraContenido function does not receive the information, because the answer takes 00:05: 00, if the answer lasted 00:01: 00 everything walks well.

 

some idea or solution to this problem?

Please use plain text.