output bufferring and tables

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
kcomer
Forum Contributor
Posts: 108
Joined: Tue Aug 27, 2002 8:50 am

output bufferring and tables

Post by kcomer »

I am using output buffering on a search page I have for my app. I would like to flush the buffers every so often, incase they did a huge search, to keep the screen updating. But I use a table and insert rows into the table and it seems to be stopping the browser from printing anything to the screen. I know the browser is getting the info from the web server becuase I can view source and see it while its processing. I ran this small test script to verify.
[syntax=php]<?
echo '<table>';
echo '<tr><td>one</td></tr>';
flush();
sleep(5);
echo '<tr><td>two</td></tr>';
echo '</table>';
?>[/syntax]
I don't think it's possible to make this work, the way I have it, since the browser can't draw a layout it doesn't fully know already, becuase of no end tags. But, if anyone has any ideas send em to me.

Thanks,

Keith
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

http://www.w3.org/TR/REC-CSS2/tables.html#width-layout
e.g.

Code: Select all

< TABLE STYLE="table-layout: fixed" WIDTH="80%" cellspacing="7" > 
  < TR HEIGHT="100" >
    < TD WIDTH="10%"class="light" >R1C1 10%< /TD >
    < TD WIDTH="15%"class="light" >R1C2 15%< /TD >
    < TD WIDTH="25%" > R1C3 25%< /TD >
    < TD WIDTH="20%"class="dark" >R1C4 20%< /TD >
    < TD WIDTH="30%"class="image" >R1C5 30%< /TD >
  < /TR >
< /TABLE >
(from http://hatbox.do.losrios.cc.ca.us/~fich ... bles4.html )
Post Reply