Hi,
I have a 'small' problem for read and write something in TD cell
i try this:
d = window.document ;
eTBL = d.getElementByI d('tbCal');
cTR = eTBL.getElement sByTagName('td' );
cTD = new Array(); // Collection des TD ligne par ligne
for (i = 0; i < cTR.length; i++){
cTD[i] = cTR[i].getElementsByT agName('td');
alert("une cellule");
}
but if eTBL is correct...... cTR.length = 0
why this $%*#@ of value is 0???? my array have 8 lines with 7 cell for each,
but the first line have only 3 cell
HELP Please !!!!!!!!!!!!!!! !!!!!!!!!!!!!!! !!!!!!!!!!!!!!
I have a 'small' problem for read and write something in TD cell
i try this:
d = window.document ;
eTBL = d.getElementByI d('tbCal');
cTR = eTBL.getElement sByTagName('td' );
cTD = new Array(); // Collection des TD ligne par ligne
for (i = 0; i < cTR.length; i++){
cTD[i] = cTR[i].getElementsByT agName('td');
alert("une cellule");
}
but if eTBL is correct...... cTR.length = 0
why this $%*#@ of value is 0???? my array have 8 lines with 7 cell for each,
but the first line have only 3 cell
HELP Please !!!!!!!!!!!!!!! !!!!!!!!!!!!!!! !!!!!!!!!!!!!!
Comment