Hi, I need to add dynamically ~1000 rows to a table. I get the rows using AJAX call. If I try to insert rows in a convention way (document.createElement for each tbody, tr and td) it takes almost 1.5 min. (Must use IE...) I would like to know if there is a way that can append all the rows from the XML directly to the existing table. I already tried innerHTML with no success.
Why doesn't innerHTML work? That was the first solution that poped into my head when reading your post. Please see http://www.quirksmode.org/dom/innerhtml.html for the experiment. LAWL, I can't link yet ^^
Do you really NEED to add and DISPLAY all rows at the same time ? Maybe for printing ? And, your time problem is adding content of displaying it ? If no, a possible workaround is to add row filtering and/or paging (through AJAX) Also you can try adding style="table-layout:fixed;" to your table to speed up the rendering time .