RE: [PHP] intermediate search screen

From: Date: Thu, 10 Apr 2003 07:11:11 +0000
Subject: RE: [PHP] intermediate search screen
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143279@lists.php.net to get a copy of this message
another option that might work is put the site header in its own table. once the browser receives the full table it can display it. In this header you could also have an image (animated gif of some sort) and use the onload event to change the image once the page has loaded. (to a transparent gif or "search complete" image). I think CNET used to do something like this something like <body onload="javascript:switchSearchImage();"> <table> <tr> <td>SITE NAME</td> </tr> </table> <table> <tr> <td><img src=search_progress.gif id=progess></td> </tr> </table> <? // query here ?> <table> <tr> <td> <? // loop / echo search results ?> </td> </tr> </table> olinux --- Chris Shiflett <shiflett@php.net> wrote: > --- "John W. Holmes" <holmes072000@charter.net> > wrote: > > No... You can't show some text on a page and then > execute some PHP > > code to do your search... Remember how PHP works. > By the time the > > browser loads, the PHP code is done. > > While this is true, PHP does support chunked > transfer encoding. I use this with > Apache when I want to send output to the user prior > to the completion of the > page. This is also how most chat rooms work. > > Basically, the content length is communicated for > each chunk within the content > itself, so the Content-Length header is not > necessary, nor is it necessary to > generate the entire output prior to sending it to > the client. > > Look into the flush() function for more information > (and some user notes about > how to work around IE deficiencies): > > http://www.php.net/flush > > Chris > > ===== > Become a better Web developer with the HTTP > Developer's Handbook > http://httphandbook.org/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com

« previous php.general (#143279) next »