Reply to Re: Temporary output (please wait screen)

Your name:

Reply:


Posted by Jerry Stuckle on 01/09/08 13:44

C. (http://symcbean.blogspot.com/) wrote:
> On Jan 8, 6:17 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> C. (http://symcbean.blogspot.com/) wrote:
>>> On Jan 8, 4:03 pm, thib´ <th...@coralsnake-team.com> wrote:
>>>> jodleren wrote:
>>>>> Hi
>>>>> I have never done this before... but I could use it now.
>>>>> How do I create a "please wait" page, which will "reload" once my real
>>>>> page is ready?
>>>>> I am talking of a waiting time of some 10-20 secs, but can be
>>>>> worse.... still even 10 secs I'd like something telling the user, that
>>>>> data is being processed.
>>>>> [like when booking an airline ticket... waiting 2 mins there is
>>>>> common]
>>>>> Terv
>>>>> Sonnich
>>>> Output your message, process the info, cache it, html reload, done.
>>>> The only problem is that you have to deal carefully with private info,
>>>> but it's really affordable.
>>>> -thib´
>>> You don't actually need to reload - as long as the job will complete
>>> before the browser times out, write the 'please' wait inside a div,
>>> flush it, then when the final output is ready make the div invisible
>>> with javascript.
>>> C.
>> There is no guarantee the browser will display anything before all
>> output is sent.
>>
>
> True - but it works on every browser I've tested (MSIE, Firefox,
> Konqueror)...and of course its dependant on having a webserver capable
> of generating chunked encoding.
>
> Perhaps I should say YMMV.
>
> C.
>
>

Yep, there are three possible reasons for this not being displayed:

1. PHP buffers may not be full (but can be flushed manually)
2. Web server buffers may not be full (no control but often flushed when
you flush the php buffers)
3. The browser may get the data but not display it.

Like you, I've found generally it works. But not necessarily always.

Now it may be OK with the op if the message only shows 95% of the time
and misses 5% of the customers. I mean - a "please wait" isn't the most
important message in the world :-).

But if he does want it to show up 100% of the time, he should be looking
at the other methods proposed here.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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