Reply to Re: "Please wait" - popup

Your name:

Reply:


Posted by scheper at xs4all dot nl on 12/10/06 13:00

kenoli wrote:
> 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
>
>

Thanks again. But it is not the dots what i am concerned about. It is
the script. It is not getting out of the while loop, so it is not doing
anything except printing out some stuff. How can i get the other code to
execute?

Mark

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация