FixedHeader Left Column

FixedHeader Left Column

vlnvln Posts: 1Questions: 0Answers: 0
edited April 2010 in FixedHeader
We were having issues with it causing IE to go
"A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?"

So in _fnCloneTLeft, I replaced:
[code] nTable.appendChild(jQuery("thead", s.nTable).clone(true)[0]);
nTable.appendChild(jQuery("tbody", s.nTable).clone(true)[0]);
nTable.appendChild(jQuery("tfoot", s.nTable).clone(true)[0]);
jQuery('thead tr th:gt(0)', nTable).remove();
jQuery('tbody tr td:not(:nth-child(' + iCols + 'n-' + (iCols - 1) + '))', nTable).remove();
jQuery('tfoot tr th:gt(0)', nTable).remove();[/code]

[code] nTable.appendChild(jQuery('thead', s.nTable)[0].cloneNode(false))
.appendChild(jQuery('thead tr', s.nTable)[0].cloneNode(false))
.appendChild(jQuery('thead tr th:first', s.nTable).clone()[0]);

var nTbody = jQuery('tbody', s.nTable)[0].cloneNode(false);
jQuery('tbody tr', s.nTable).each(function() {
.appendChild(jQuery('td:first', this).clone()[0]);


nTable.appendChild(jQuery('tfoot', s.nTable)[0].cloneNode(false))
.appendChild(jQuery('tfoot tr', s.nTable)[0].cloneNode(false))
.appendChild(jQuery('tfoot tr th:first', s.nTable).clone()[0]);[/code]

This seems to be more efficient. Any ideas on how to improve it?

- Vu
This discussion has been closed.