I have a parent page with a number of child rows on it.
When I press an onclick event on the parent page a child window opens
and deletes the child data from the db table, then the child window
passes back that row to the parent window.
The child window open up using:
mydeltaskwin =
window.open(mycgi,'task_delete','width=800,height= 400,top=50,left=50,scrollbars=no');
In the parent window I use some js code embedded in the parent page
like:
<script type="text/javascript" src="mycode.js"></script>
The code that executes in that js file looks like:
function delTaskRow(x,y)
{
var row_delete = document.getElementById("Task_Row_"+y);
if ( this_num == lx && row_delete )
{
row_delete.parentNode.removeChild(row_delete);
}
}
If I have a number of rows that need to be deleted then pressing them
in succession ultimately causes an error in IE and I get the message:
IE experienced a problem and needs to close! debug, close.
Is this happening because I am using some code that is inconsistent?
I am wondering if it is because IE open the windows and then they
close, but the reminants of them are somewhere still in memory and then
it gets confused.
Anyone experience this kind of thing?
Mike