|
Posted by kenoli on 12/10/06 01:42
You could modify the basic schema, use something like "=>" characters
instead of dots or some CSS, an expanding div with a border, a
horizontal rule that keeps growing. Essentially, what you are doing is
printing something out on the screen proportionally over a time
interval while your script finishes processing to give the user a
visual sense that something is going on.
--Kenoli
scheper at xs4all dot nl wrote:
> kenoli wrote:
> > Here's one:
> >
> > <?php
> > // Output a 'waiting message'
> > echo 'Please wait while this task completes';
> >
> > // Now while waiting for a certain task to complete, keep outputting
> > .'s
> > while (true) {
> > // Echo an extra dot, and flush the buffers to ensure it gets
> > displayed.
> > echo ' .';
> > flush();
> >
> > // Now sleep for 1 second and check again:
> > sleep(1);
> > }
> > ?>
> >
> > scheper at xs4all dot nl wrote:
> >
> >>J.O. Aho wrote:
> >>
> >>>Geoff Berrow wrote:
> >>>
> >>>
> >>>>Message-ID: <4577d997$0$336$e4fe514c@news.xs4all.nl> from scheper at
> >>>>xs4all dot nl contained the following:
> >>>>
> >>>>
> >>>>>It works fine. It only takes more time to "upload" the image. So i
> >>>>>like to add a kind of "please wait" feature. Maybe in a popup? A
> >>>>>progress-bar would be nice.
> >>>>>
> >>>>>Does anyone can help me out on this?
> >>>>
> >>>>
> >>>>There is one here but the demo doesn't work
> >>>>
> >>>>http://www.raditha.com/php/progress.php
> >>>>
> >>>>I've not tried it yet.
> >>>
> >>>
> >>>It won't work in all browser, as it uses jscript and not javascript, and
> >>>microsoft hasn't released it under any public license.
> >>>
> >>>
> >>> //Aho
> >>
> >>Yep, i have seen this one. Maybe that is not what i realy want (to
> >>complicated also). Is there another way to inform the people? Now they
> >>have to wait and are not sure anything happens.
> >>
> >>Mark
> >
> >
>
> Thanks, but now i only get a lot of dots. While it is true (and it is)
> it only displays the dot and does not go any further. Any work around
> for this?
>
> Mark
[Back to original message]
|