Hi all,
I have a code that makes a loop into the row of my table, and adds en event for each row.
when I add an : alert("foo")
into my loop, the code works, for all 166 rows
when i remove the alert, the code is executed but not until the end of all rows, only a part of the rows (like 88/165). it seems really strange no ?
here is the exemple :
doesn't find and process all rows :
find and process all rows :
I really don't understand. the particularity of my table is that it's filled with DOMXML and it's not a fixed table.
Any idea ?
Regards,
Elise
I have a code that makes a loop into the row of my table, and adds en event for each row.
when I add an : alert("foo")
into my loop, the code works, for all 166 rows
when i remove the alert, the code is executed but not until the end of all rows, only a part of the rows (like 88/165). it seems really strange no ?
here is the exemple :
doesn't find and process all rows :
Code:
for(i=1;i<theTab.rows.length;i++)
{
theTab.rows[i].onmousedown=function(event){detectClick(event, this)};
//alert("foo");
}
alert(i);
find and process all rows :
Code:
for(i=1;i<theTab.rows.length;i++)
{
theTab.rows[i].onmousedown=function(event){detectClick(event, this)};
alert("foo");
}
alert(i);
I really don't understand. the particularity of my table is that it's filled with DOMXML and it's not a fixed table.
Any idea ?
Regards,
Elise