M
mike
I am using IE and I want to remove some attributes on my page before I
delete the rows as a result of what looks like memory leaks in my page.
I understand I can't remove the attributes, but the event handler is
removed.
here is my code:
var row_delete = document.getElementById("Task_Row_"+taskNum);
var obj = row_delete.getElementsByTagName("input");
for ( var i=0; i<obj.length; ++i )
{
var atts = obj.attributes;
for (var j=0;j<atts.length;j++)
{
if (atts[j].specified)
{atts[j] = null;}
}
}
I seem to get an error on this statement: atts[j] = null;
Mike
delete the rows as a result of what looks like memory leaks in my page.
I understand I can't remove the attributes, but the event handler is
removed.
here is my code:
var row_delete = document.getElementById("Task_Row_"+taskNum);
var obj = row_delete.getElementsByTagName("input");
for ( var i=0; i<obj.length; ++i )
{
var atts = obj.attributes;
for (var j=0;j<atts.length;j++)
{
if (atts[j].specified)
{atts[j] = null;}
}
}
I seem to get an error on this statement: atts[j] = null;
Mike