You are here: Re: Temporary output (please wait screen) « PHP Programming Language « IT news, forums, messages
Re: Temporary output (please wait screen)

Posted by Rob on 01/09/08 15:12

On Jan 9, 1:44 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> 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.
> jstuck...@attglobal.net
> ==================- Hide quoted text -
>
> - Show quoted text -

Have to agree with Jerry here. I've had very mixed results with
browsers displaying the content before the whole page has finished
loading, even after using flush techniques.

One way to help the browser along is to output a stream of data that
causes it to flush it's own buffers, such as a stream of HTML
comments.

Rob.

 

Navigation:

[Reply to this 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

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