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
Post a Comment