Hi. (posted here since I couldn’t decide on HTML/CSS/javascript)
I have two tables (foo and bar) that are dynamically populated.
I need these two tables to have equal rowheights (due to the left
table acting as frozen coulumns)
Currently I’m doing this with the following javascript.
[CODE]
for (var i = 0; i < foo.rows.length; i++) {
if (foo.rows[i].clientHeight != bar.rows[i].clientHeight) {
if (foo.rows[i].clientHeight > bar.rows[i].clientHeight)
bar.rows[i].style.height = foo.rows[i].clientHeight;
if (bar.rows[i].clientHeight > foo.rows[i].clientHeight)
foo.rows[i].style.height = bar.rows[i].clientHeight;
}
}
This however is way to slow, (particularly in IE) so I need
another solution.
Any suggestions?
—
dings