Hi,
i currently have a big problem with the rowIndex in the IE8. When i call the page i have an empty table element. With Javascript i now add Rows and Columns to this table.
// Create Elements
tr = document.createElement('tr');
td = document.createElement('td');
// Append Elements to existing Table
tr.appendChild(td);
table.appendChild(tr);
The User later has the Option to delete these Rows. To delete them i simply call the deleteRow Function of the table and pass the rowIndex as a parameter.
table.deleteRow(tr.rowIndex);
In the Firefox this works fine. The rowIndex is correct and the rows can be deleted. In the IE8 the rowIndex ALWAYS is -1. The deleteRow function - of course - can't find the matching row and the row isn't deleted.
Does anyone know this problem and has a nice solution for this?