har
Posts: 9
|
Posted: 04/07/2009, 7:32 AM |
|
Hi there!
I found an interesting Topic named "How to access the control values of Editable Grids" (http://forums.codecharge.com/posts.php?post_id=60507) and need the possibility to use the exact code like
<form_name>Elements[j]<form_name><control_name>ID].value
but cant get it working, however I try. Also I tried to find that array somewhere in the code, but it´s nowhere initialized...
For the time beeing I solved the part like that:
for(var i=0; i<RowCnt; i++) {
var myrow = myTABLE.rows;
switch(i) {
case 0:
CellsValue = new Array( document.image_article_image.imageid_1.value,
myrow.cells[0].innerHTML, document.image_article_image.thetitle_1.value,
document.image_article_image.mainimageid_1.value);
break;
case 1:
CellsValue = new Array( document.image_article_image.imageid_2.value,
myrow.cells[0].innerHTML, document.image_article_image.thetitle_2.value,
document.image_article_image.mainimageid_2.value);
break;
case 2:
Cells.....
break;
case 3:
Cells.....
break;
default:
break;
}
}
It's fixed to 4 rows at the moment but should be completely free up to X rows...
Therefore I need the array, but cant get it work like in that example.
Can anyone help me?
Thx a lot, Hartmut
|