Hi All,
I am facing CPU utilization issue while iterating through HTML table rows. I am generating an HTML table dynamically using javascript
which contains atleast 500 rows. After the creation of table, the table cells are assigned with some values from a JSON object. The sample code for assigning cells values is shown below.
for(var i = 0;i<tbl.rows.length;i++){
tbl.rows[i].cells[0] = JSON.AAAA;
tbl.rows[i].cells[1] = JSON.BBBB;
...
...
tbl.rows[i].cells[12] = JSON.MMMM;
}
The execution of the above loop takes lots of cpu cycle. It takes the cpu upto 99.
Please help me to reduce the cpu utlization.
Thanks