2ndmouse — 2013-05-14T08:34:21-04:00 — #1
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.
starlion — 2013-05-14T09:18:10-04:00 — #2
2ndmouse — 2013-05-14T09:35:03-04:00 — #3
Hi starlion - I presume you mean that the onload event should be added to the script file itself in iframe2, which in turn would send a 'run complete' message to the iframe containing the progress bar.
starlion — 2013-05-14T10:52:47-04:00 — #4
Mmh no, i mean the ONLOAD event of an iframe element - which would be inside the page that contains said elements. Iframe2 shouldnt trigger this event until it's page is loaded fully.
2ndmouse — 2013-05-14T15:57:08-04:00 — #5
Hi starlion - I haven't quite got there yet, but I think your suggestion is going to work. I don't use iframes if I can help it, so I don't know too much about them. Anyway, thanks for the tip.