DHTML tables generate R6025 pure virtual function call error in IE6 any ideas??

Giganews Newsgroups
Subject: DHTML tables generate R6025 pure virtual function call error in IE6 any ideas??
Posted by:  Steve (dudeste…@gmail.com)
Date: 14 Sep 2006

hi all,
i'm using DHTML to generate a dynamic table with adding removing and
sorting rows
the thing is after a row has been added at a position that i specify,
if i try to delete it i get this error !
here's a chunk of code

<script language='javascript' type='text/css' >
function removeElement(divNum,arrayCode,elementId)
{

  var dynamic_content_table=document.getElementById("dynamiccontent")
  var row_to_delete=document.getElementById("tr"+elementId)
  for(var
i=row_to_delete.rowIndex+1;i<dynamic_content_table.rows.length;i++)
  {
      var row=dynamic_content_table.rows[i]
      var the_span=row.cells[0].getElementsByTagName("span")
      the_span[0].innerText=i-2
  }
  alert(row_to_delete.rowIndex)
  dynamic_content_table.deleteRow(row_to_delete.rowIndex) // row
generating error
    deleteId(divNum)
    count--
    updatecount()
    elementId--
}

it happens if i try to add an element at a specific position using
function addElement(elementId,at_pos)
{
dynamic_content_table.insertRow(at_pos)
}
by the way the code works great in FF
appreciate the help
thanks

Replies