I need a process indicator for AJAX requests.
I have a process that rewrites various files per-queued request. Each queued request is displayed in a list and for each of the list items, I'd like to see a basic process indicator that displays the percentage completed. The PHP responsible for the file writes could be managed by establishing the size of the data before writing the file, so I'm thinking that I could do an AJAX GET request every N seconds / minutes to see if the file is written... Can this be done? And then based on the checking, return a metric that's used for the percentage calculation which is then used to adjust the width of the progress bar...
I guess I'm just not sure how to compute the overall size of data for the file writes. The data is a culmination of information that gets written to the file, so I'm not sure how I can use this to come up with an overall memory / file size footprint? Thoughts anyone?
Thanks in advance.
Process Indicator for AJAX Requests?
Moderator: General Moderators