I have a page containing 2 iframes. The first iframe loads a php/javascript based progress bar. The 2nd iframe loads a php script that runs automatically, scanning all files in a web. On a good day, the script will scan 5000 files in about 8 seconds - the bigger the site the longer it takes. On very large sites it can take several minutes.
Currently, the duration of the progress bar is determined by the number of files scanned in the previous script run. This is proving to be accurate on occasions and wildly out on other occasions. Depending on server conditions at run time.
I can’t add any html to the script file itself as it is also triggered by cron job - any html in the file is passed to the cron log, which I don’t want to happen.
I’m looking for a way to detect when the script loading in iframe2 has completed its run so I can terminate the progress bar on completion.
Alternatively, does anyone know of a truly dynamic progress bar? Can’t find anything suitable out there. Beginning to think that such a thing doesn’t exist.
Regards