Re: Re: Loading message

From: Date: Thu, 25 Oct 2001 22:41:27 +0000
Subject: Re: Re: Loading message
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-72360@lists.php.net to get a copy of this message
> I suspect that PHP does all of it's work and, only when complete, will it > send the generated html to the client. > > No matter what you try and do there's no way you can output the progress of > your script to the browser while it is still being parsed. > > I could be wrong, but this is my understanding of it. > > Is your script really taking that long to be parsed that you need a loading > progress bar or is the html (including graphics etc) just very big? =ok, so why not display a stripped down first page which displays "LOADING" etc, and which then immediately calls another page, ie the one that does the heavy processing? =the timed redirect is managed through a HTML meta-tag. I've used it with native-HTML pages, but not tried to specify a .PHP page (yet) =give it a go! =dn > Anyway, > > Hope this helps > Derek > > ----- Original Message ----- > From: "Daniel Alsén" <d@mindbash.com> > To: "php" <php-general@lists.php.net>; "_lallous" > <elias_bachaalany@yahoo.com> > Sent: Thursday, October 25, 2001 11:27 AM > Subject: RE: [PHP] Re: Loading message > > > > I will try experimenting with that. > > > > But my situation is: > > > > A page with multiple php file includes. The page loads on to the includes, > > loads them and continues to load the includes below. > > I want to display some sort of text while the include still isn´t loaded. > > > > Likewise i would like to display some sort of loading message while a > > database search is active. > > > > - Daniel > > > > > -----Original Message----- > > > From: _lallous [mailto:elias_bachaalany@yahoo.com] > > > Sent: den 25 oktober 2001 13:14 > > > To: php-general@lists.php.net > > > Subject: [PHP] Re: Loading message > > > > > > > > > the page won't ever showup unless the webserver finishes > > > processing the PHP > > > file, therefore the "Loading ..." will appear while the page is > > > waiting for > > > its component to finish loading (images, javascripts, flash files, ....) > > > > > > therefore what you're asking for has a javascript solution: > > > > > > 1)make a <div> with width and height about 1000 and absolute position w/ > > > z-index=1000 > > > 2)add a body.onload event so that when the pages loads you hide > > > that layer. > > > 3)that layer can hold any text or tags as you want like: "Please > wait...." > > > > > > this division's code: > > > <div id='loadinglayer' > > > style='left:0;top:0;width:1000;height:1000;position:absolute;z-ind > > ex:1000;ba > > > ckground:black'>Please wait....</div> > > > > > > <body onload='hidelayer()'> > > > </body> > > > > > > <script> > > > function hidelayer() > > > { > > > if(document.all) > > > document.all['loadinglayer'].style.visibility="hidden"; > > > else > > > document.layers['loadinglayer'].visibility="hide"; > > > } > > > </script> > > > > > > hope that helps > > > "Daniel alsén" <d@mindbash.com> wrote in message > > > news:PGEGIELINOCCEHLENIOJMEPJCCAA.d@mindbash.com... > > > > Hi, > > > > > > > > is there a easy way in php to display text like "Loading..." while > > > elements > > > > on a page is being loaded from the server? > > > > > > > > Regards > > > > # Daniel Alsén | www.mindbash.com # > > > > # d@mindbash.com | +46 704 86 14 92 # > > > > # ICQ: 63006462 | # > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > ********************************************************************************** > This e-mail (and any attachment) is intended only for the attention > of the addressee(s). Its unauthorised use, disclosure, storage > or copying is not permitted. If you are not the intended recipient, > please destroy all copies and inform the sender by return e-mail. > This e-mail (whether you are the sender or the recipient) may be > monitored, recorded and retained by Business Information > Publications Limited (BiP). E-mail monitoring/ blocking software > may be used, and e-mail content may be read at any time.You > have a responsibility to ensure laws are not broken when composing > or forwarding e-mails and their contents. > ********************************************************************************** > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#72360) next »