WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Optimization, Vadim, October 23, 2003
     Re:Optimization, Erik Arvidsson, October 23, 2003

Subject: Optimization From: Vadim Date: October 23, 2003

I need to color a row or some rows in a table and I do it like this

function applyStyle(oTR, sClass)


    var i = 0;

    var ii = oTR.cells.length;

    while (i < ii) { oTR.cells[i].className = sClass; i++; }


But when I apply it to 20 or above rows it takes about 5-10 seconds

Is there a way to optimize it?


Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.

View All Messages
Back to WebFX