C
Chris
Can anyone help me on this one?
I have a giant (couple thousand rows) HTML table.
Im trying to modify some of the cells innerHTML and/or innerText, but
it is taking a VERY long time to do so.
I believe that the problem is not with executing the code, but rather
with the browser reparsing the page, or the table, or something.
Basically, if I get a reference to a TD element in a variable called
MyCell, then I have this code.
alert("about the update cell");
MyCell.innerHTML = "hello";
alert("finished");
When I do this, I hear the "Bing" from the 2nd alert box very fast,
almost right away when I click OK to the "about to update cell" alert
box, but the actual alert box saying "finished" doesn't show up for
another 5 seconds or so. During these 5 seconds, my browser is
locked, and the change I made in javascript does not show.
I tried using: style="TABLE-LAYOUT:fixed;" in my table, this helped
load the table faster (it will start showing rows before it has
finished loading the whole table), but it did nothing for my DHTML
times...
Can some guru out there help me with this one? Is there anything else
I can do here to help with this problem?
I have a giant (couple thousand rows) HTML table.
Im trying to modify some of the cells innerHTML and/or innerText, but
it is taking a VERY long time to do so.
I believe that the problem is not with executing the code, but rather
with the browser reparsing the page, or the table, or something.
Basically, if I get a reference to a TD element in a variable called
MyCell, then I have this code.
alert("about the update cell");
MyCell.innerHTML = "hello";
alert("finished");
When I do this, I hear the "Bing" from the 2nd alert box very fast,
almost right away when I click OK to the "about to update cell" alert
box, but the actual alert box saying "finished" doesn't show up for
another 5 seconds or so. During these 5 seconds, my browser is
locked, and the change I made in javascript does not show.
I tried using: style="TABLE-LAYOUT:fixed;" in my table, this helped
load the table faster (it will start showing rows before it has
finished loading the whole table), but it did nothing for my DHTML
times...
Can some guru out there help me with this one? Is there anything else
I can do here to help with this problem?