gangireddyit
Aug 25th 2008, 2:41 am
Hi ,
I am using javascript appendChild() function which is very slow, i need an alternative for this which will improve my system performance. the following is the code snippet
if(t.tBodies[count].id != null && t.tBodies[count].id == "dataRows"){
for (j=0;j<t.tBodies[count].rows.length;j++) {
t.tBodies[count].appendChild(sortRows[j]);
document.all("mainTable")[1].tBodies[count].rows[j].cells[0].innerHTML = sortRows[j].cells[0].innerHTML;
}
}
in the above i need an alternative to t.tBodies[count].appendChild(sortRows[j]); which is taking more time , please help in this
I am using javascript appendChild() function which is very slow, i need an alternative for this which will improve my system performance. the following is the code snippet
if(t.tBodies[count].id != null && t.tBodies[count].id == "dataRows"){
for (j=0;j<t.tBodies[count].rows.length;j++) {
t.tBodies[count].appendChild(sortRows[j]);
document.all("mainTable")[1].tBodies[count].rows[j].cells[0].innerHTML = sortRows[j].cells[0].innerHTML;
}
}
in the above i need an alternative to t.tBodies[count].appendChild(sortRows[j]); which is taking more time , please help in this