I'm in the middle of a reporting tool for my client which basically rebuilds reports on the fly if they are X days old.
The issue is that the reports are rebuilt with PHP, and some of them can be pretty big, meaning 20-40 second loading times.
At the moment, it just hangs the page while it performs the query.
What I'm wanting to do however is have some sort of jquery loading overlay placed into the page before the query starts, and then when the query finishes, redirect to another page (where the results will be shown).
Am I right in thinking that as long as I load the html into the page BEFORE running the query, the loading screen should display, and then once the query is finished, I can place another bit of HTML to do a meta refresh to another page (obviously a header redirect is out of the question as the headers would have already been sent).
If this is correct, could anyone recommend any half-decent jquery based loading plugins?
Many thanks