Easiest way to do it is by using frames.
Have a hidden frame that updates a text box on the main page using
Javascript. The hidden box updates every few seconds. No flicker too!
And when the background process is finished, the hidden frame can update
the whole main page.
Donncha.
"John P. Looney" wrote:
>> I've to write a PHP page that does a shitload of stuff. It could take
> over a minute.
>> For obvious reasons (as in, a reload in the middle of the procedure would
> screw things up), I've been asked to have a progress meter, saying when
> each stage is done, to keep users happy.
>> Only, I'm not sure that can be done without something like streaming
> flash. Which I've no idea how to even start doing (though I have noticed
> that Apache does have a mod_flash or somesuch).
>> Is there a nice way to stream HTML to a page, and have it update ? I'd
> really love to see an example of this.
>> The other way I *could* do it is using meta-refresh, and each step along
> the way, refresh the page with different query args. Sounds simple, but
> I'm sure I could screw it up.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!