Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory leak on adding Form to a DOM node

Status
Not open for further replies.

thatts

Programmer
Sep 6, 2007
3
US
Hi,

I dynamically add and remove rows to my table using DOM APIs. Inside one of the cells in the table I have a FORM.
Now I see IE leaks the memory as time goes on, is there any way to force IE to garbage collect.

HEre is the sample code for adding
var tbl = document.getElementById('tblSample');
var row = tbl.insertRow(1);
row.insertCell(8).innerHTML="<FORM id=2828233665_form blah blah </form>"

and removing using
tbl.deleteRow(lastRow - 1);

Any thoughts ???

Thanks

_Pete




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top