473,473 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

incremental table rendering, intermediate buffer flushing

W3C recommendations notwithstanding (see
http://w3.org/TR/html401/appendix/no...l#notes-tables) I can't
seem to persuade either of the leading browsers to do true incremental
table loading. Neither responds to COL/COLGROUP tags.

I have a very large data table which is being generated in
J/ECMA/JavaScript dynamically. I want to give the user some top rows
while the bottom rows are still loading. Without true incremental
table rendering I am down to the idea of trying to flush the buffer
halfway down the table, but I can't seem to be able to do that. Except
for inserting a call to "alert" (see below) with every other approach
the browser waits for the whole thing to load...

Basically, I have something like this:

<table>
<thead> <!-- pre-draw the headers -->
<tr>
<th>Header One</th>
<th>Header Two</th>
</tr>
</thead>
<tbody id="myData"> <!-- an empty TBODY -->
</tbody>
</table>

<script>
// call a function to write 20 rows from a data array
// the function adds rows and cells to the TBODY
// using tbody.insertRow and tr.insertCell calls
drawTable("myDataArray", 0, 20);

// what do I put here, between the two (or more) calls
// to drawTable to make the browser flush? the only
// thing that seems to do the trick (but is unacceptable)
// is a message box, i.e.:
alert("draw more?");
// I need something that has the same effect, but requires
// no user interaction

//call the function again to add the rest of the data
drawTable("myDataFile", 21, 2000);
</script>

Any help much appreciated (both with my general problem of displaying
a big HTML table in a user-friendly manner and with my immediate
problem of forcing a flush partway down). Thank in advance!

George
Jul 20 '05 #1
6 5402
Instead of the linw: drawTable("myDataFile", 21, 2000);
try: setInterval('drawTable("myDataFile", 21, 2000)',1);

"g pavlov" <ge*******@yahoo.com> wrote in message
news:79**************************@posting.google.c om...
W3C recommendations notwithstanding (see
http://w3.org/TR/html401/appendix/no...l#notes-tables) I can't
seem to persuade either of the leading browsers to do true incremental
table loading. Neither responds to COL/COLGROUP tags.

I have a very large data table which is being generated in
J/ECMA/JavaScript dynamically. I want to give the user some top rows
while the bottom rows are still loading. Without true incremental
table rendering I am down to the idea of trying to flush the buffer
halfway down the table, but I can't seem to be able to do that. Except
for inserting a call to "alert" (see below) with every other approach
the browser waits for the whole thing to load...

Basically, I have something like this:

<table>
<thead> <!-- pre-draw the headers -->
<tr>
<th>Header One</th>
<th>Header Two</th>
</tr>
</thead>
<tbody id="myData"> <!-- an empty TBODY -->
</tbody>
</table>

<script>
// call a function to write 20 rows from a data array
// the function adds rows and cells to the TBODY
// using tbody.insertRow and tr.insertCell calls
drawTable("myDataArray", 0, 20);

// what do I put here, between the two (or more) calls
// to drawTable to make the browser flush? the only
// thing that seems to do the trick (but is unacceptable)
// is a message box, i.e.:
alert("draw more?");
// I need something that has the same effect, but requires
// no user interaction

//call the function again to add the rest of the data
drawTable("myDataFile", 21, 2000);
</script>

Any help much appreciated (both with my general problem of displaying
a big HTML table in a user-friendly manner and with my immediate
problem of forcing a flush partway down). Thank in advance!

George

Jul 20 '05 #2
Oops, I ment: setTimeout('drawTable("myDataFile", 21, 2000)',1);
"Vic Sowers" <Ma**@VicSowers.com> wrote in message
news:3f***********************@news.hal-pc.org...
Instead of the linw: drawTable("myDataFile", 21, 2000);
try: setInterval('drawTable("myDataFile", 21, 2000)',1);

"g pavlov" <ge*******@yahoo.com> wrote in message
news:79**************************@posting.google.c om...
W3C recommendations notwithstanding (see
http://w3.org/TR/html401/appendix/no...l#notes-tables) I can't
seem to persuade either of the leading browsers to do true incremental
table loading. Neither responds to COL/COLGROUP tags.

I have a very large data table which is being generated in
J/ECMA/JavaScript dynamically. I want to give the user some top rows
while the bottom rows are still loading. Without true incremental
table rendering I am down to the idea of trying to flush the buffer
halfway down the table, but I can't seem to be able to do that. Except
for inserting a call to "alert" (see below) with every other approach
the browser waits for the whole thing to load...

Basically, I have something like this:

<table>
<thead> <!-- pre-draw the headers -->
<tr>
<th>Header One</th>
<th>Header Two</th>
</tr>
</thead>
<tbody id="myData"> <!-- an empty TBODY -->
</tbody>
</table>

<script>
// call a function to write 20 rows from a data array
// the function adds rows and cells to the TBODY
// using tbody.insertRow and tr.insertCell calls
drawTable("myDataArray", 0, 20);

// what do I put here, between the two (or more) calls
// to drawTable to make the browser flush? the only
// thing that seems to do the trick (but is unacceptable)
// is a message box, i.e.:
alert("draw more?");
// I need something that has the same effect, but requires
// no user interaction

//call the function again to add the rest of the data
drawTable("myDataFile", 21, 2000);
</script>

Any help much appreciated (both with my general problem of displaying
a big HTML table in a user-friendly manner and with my immediate
problem of forcing a flush partway down). Thank in advance!

George


Jul 20 '05 #3
"Vic Sowers" <Ma**@VicSowers.com> wrote in message news:<3f***********************@news.hal-pc.org>...
Oops, I ment: setTimeout('drawTable("myDataFile", 21, 2000)',1);


I have tried this. It makes no difference. The table does not draw
incrementally.

Were you proposing this because you know it works (in which case I
have to check my browser versions) or because you _think_ it might
work?

Again, the only things that seem to flush the buffer are
intrusive/unacceptable things like throwing an alert(), a confirm() or
a window.showModalDialog(). Even window.showModelessDialog() does not
do the trick...

George
Jul 20 '05 #4

"g pavlov" <ge*******@yahoo.com> wrote in message
news:79**************************@posting.google.c om...
"Vic Sowers" <Ma**@VicSowers.com> wrote in message

news:<3f***********************@news.hal-pc.org>...
Oops, I ment: setTimeout('drawTable("myDataFile", 21, 2000)',1);


I have tried this. It makes no difference. The table does not draw
incrementally.

Were you proposing this because you know it works (in which case I
have to check my browser versions) or because you _think_ it might
work?

Again, the only things that seem to flush the buffer are
intrusive/unacceptable things like throwing an alert(), a confirm() or
a window.showModalDialog(). Even window.showModelessDialog() does not
do the trick...

George


I run the following in IE 6.0 and the rows fill and display every second:

<html>
<head>
<title>Incremental Row Addition</title>
</head>

<body>
<table id="Incr" border="1"></table>
<script language="JavaScript">
var Rows=0;
function FillRows() {
var row = Incr.insertRow();
var cell = row.insertCell();
cell.innerText = Rows++;
var cell = row.insertCell();
cell.innerText = Math.random();
if (Rows<10) setTimeout("FillRows()",1000);
}
FillRows();
</script>
</body>
</html>

This should work on recent versions of IE (>=4.0) but I don't know if it
will work on NS. Probably not, at least as written. NS accesses its elements
differently, but I think the 'setTimeout' technique might work.

Vic
Jul 20 '05 #5
You are right. It does work in IE for me too now. I can't reproduce
what I was doing before when it wasn't flushing. Thanks!
Jul 20 '05 #6
"g pavlov" <ge*******@yahoo.com> wrote in message
news:79**************************@posting.google.c om...
You are right. It does work in IE for me too now. I can't reproduce
what I was doing before when it wasn't flushing. Thanks!

Have you tried using setTimeout to draw each row?
On our intranet I use ScriptX from meadroid. It's free and has a wait method
that equals VBs doEvents call. You can call it after each row is drawn or
each group of rows.

--

Joe

Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rob Freundlich | last post by:
I have some servlet-generated tabular data that I need to present, so I'm using an HTML Table. In some cases, it can be quite large. I'm flushing the servlet output every N lines to push the data...
3
by: apple | last post by:
UDB v8 fp 6a on AIX 5.1.0.0 Below is a manual incremental recover from compressed backup datasets. With external compress backup datasets, can it be coded to do an automatic incremental recover?...
0
by: Willem | last post by:
Based on MK's TSI_SOON (http://www.trigeminal.com/)I've created a nifty little procedure that - whenever you compact you db you get an incremental backup copy. Given that you have a table with...
3
by: Eric | last post by:
Good afternoon, Can anyone help me with flushing the buffer in ASP.NET. I have a set of functions that perform a series of maintainence operations. As these functions are called sequentially,...
8
by: CJM | last post by:
I have quite a large report, which takes a couple of minutes to run. I'd like to show line-by-line updates as they become available, but since I'm using IE6, Response.Flush() doesnt work. I know...
6
by: Raj | last post by:
How can we do an online restore of a tablespace using the incremental backup's? we are on a partitioned database... Also, how could we use backup copy made by the load (using the copy to option...
0
by: tomzam | last post by:
I'm trying to get mysql working on Fedora Core 4. Actually trying to start the program mysqld without fatal errors. I posted this message first on the linux misc group - but no luck so far. Maybe...
1
yabansu
by: yabansu | last post by:
Hi all, I implemented a basic client application. It communicates with server and works properly. Building processes succeed just by giving the following warning: LINK : D:\DOC\Visual Studio...
5
by: arnuld | last post by:
this is from mentioned section. i did not understand some things here: it means "flushing the buffer" and "writing to output device" are SAME thing, these are just 2 different names for the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.