php - Why HTTP Requset abort or i can't get the response? -


i'm trying send http request php file , users names in while loop send request every loop happen request aborted happen in firebug.

function getbody(){         if(window.xmlhttprequest){             http = new xmlhttprequest();         }else{             http = new activexobject(microsoft.xmlhttp);         }         limit =getc();         i=1;         while(i <= 50){             http.onreadystatechange = function(){                            if(http.readystate == 4){                         getposts(http.responsetext , i);                     }             }             http.open("get","../php/php.php?q=getbody&id=comment"+i);                    http.send();             i++;         }     } 

check in firebug destination in http.open

"../php/php.php?q=getbody&id=comment"+i

i think parameter needs modified, happend alot me , works in localhost not online , vice versa


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -