basty_dread Posted July 17, 2010 Share Posted July 17, 2010 Hello guys.. i need your helps.. i have a problem on ajax onreadystate==3 this is when the request is currently processing right? on my php code: foreach($query->result_array() as $row){ $productId = $row['pID']; $this->generatevalue($productId); // echo $productId." is Finished"; // show the product that is currently processing } echo "All Items Are Updated!"; // on ready state ==4 the function is finished this is my ajax function: ajaxRequest.onreadystatechange = function(){ if(ajaxRequest.readyState==3){ message = ajaxRequest.responseText; document.getElementById(prid).innerHTML = message }else if(ajaxRequest.readyState == 4){ message = ajaxRequest.responseText; document.getElementById(prid).innerHTML = message; } } my question is how could i get the product that are corrently processing..? my code only displays the first record that is being processed.. please help... :'( thanks a lot.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.