473,598 Members | 3,458 Online
Bytes | Software Development & Data Engineering Community
+ 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("myDa taArray", 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("myDa taFile", 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 5408
Instead of the linw: drawTable("myDa taFile", 21, 2000);
try: setInterval('dr awTable("myData File", 21, 2000)',1);

"g pavlov" <ge*******@yaho o.com> wrote in message
news:79******** *************** ***@posting.goo gle.com...
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("myDa taArray", 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("myDa taFile", 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('dra wTable("myDataF ile", 21, 2000)',1);
"Vic Sowers" <Ma**@VicSowers .com> wrote in message
news:3f******** *************** @news.hal-pc.org...
Instead of the linw: drawTable("myDa taFile", 21, 2000);
try: setInterval('dr awTable("myData File", 21, 2000)',1);

"g pavlov" <ge*******@yaho o.com> wrote in message
news:79******** *************** ***@posting.goo gle.com...
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("myDa taArray", 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("myDa taFile", 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('dra wTable("myDataF ile", 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.showModa lDialog(). Even window.showMode lessDialog() does not
do the trick...

George
Jul 20 '05 #4

"g pavlov" <ge*******@yaho o.com> wrote in message
news:79******** *************** ***@posting.goo gle.com...
"Vic Sowers" <Ma**@VicSowers .com> wrote in message

news:<3f******* *************** *@news.hal-pc.org>...
Oops, I ment: setTimeout('dra wTable("myDataF ile", 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.showModa lDialog(). Even window.showMode lessDialog() 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>Incremen tal Row Addition</title>
</head>

<body>
<table id="Incr" border="1"></table>
<script language="JavaS cript">
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("Fil lRows()",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*******@yaho o.com> wrote in message
news:79******** *************** ***@posting.goo gle.com...
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
5087
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 to the browser as it generates, and I've used "table-layout: fixed" for the table's CSS class. It works pretty well in Netscape (7.1 and higher) - the table is drawn pretty much as the rows are received by the browser. However, Internet...
3
3146
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? The manual incremental recover works just fine, but having trouble getting the automatic incremental recover to work. Thanks for your help # INCREMENTAL BACKUP
0
3132
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 version information you get incremental backups on a per-version basis. SEE CODE BELOW Basic idea is: start TSISOON with the options: 1. "compact this db"
3
8517
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, each contains a status as to the success or failure of the particular process. I want to be able to send to the client each output string at it happens. The way it is working right now is that it is storing the output until all of the functions...
8
3703
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 that I could break the table up into a series of smaller tables, but I prefer not to do this unless I have to - are there any other alternatives for flushing rows of a table? Thanks
6
3665
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 in load) to revover the tablespace? Thanks, Raj
0
3634
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 people on this group can help me out. Sorry about posting to two groups. The reference manual for mysql ver 4.1 is huge, it's over 1900 pages! I've tried all day but now I have to ask for help from people more experienced then me. Anyway, this is...
1
22060
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 2005\Projects\Client01\Debug/Client01.exe not found or not built by the last incremental link; performing full link This warning occurs when building/rebuilding the project after cleaning the intermediate and output files. If the project is once...
5
2848
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 same thing. ?
0
7991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8395
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8050
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8265
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5850
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5438
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2412
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1504
muto222
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.