LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[Webdev] Progress meters in PHP

[Webdev] Progress meters in PHP

Donncha O Caoimh donncha.ocaoimh at tradesignals.com
Wed Nov 21 10:08:52 GMT 2001


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.




More information about the Webdev mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell