PHP and Jquery Ajax Batch Processing Big data
-
I am trying to batch process data using jquery Ajax and PHP. The problem is I am getting timeout issue because of the big data. The request never gets completed and the process dies in the middle.
One way could be to run ajax for certain time and then return the available response in chunk as the request is not completed in a single request. So, to sort out this issue, I tried using setTimeout so that the ajax runs multiple times but only for fixed amount of time. However, I am stuck in the middle. Checked some threads over here but had no help.
function UpdateStatus(){ $.getJSON( "fetch.php", { }, function (data, textStatus){ setTimeout(UpdateStatus, 10000); } ); } UpdateStatus();
Can someone please shade some light on this?
Any help would be more than appreciable.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP and Jquery Ajax Batch Processing Big data’ is closed to new replies.