[Seasar-user:17803] [Teeda]xxxItemsにJavaScriptで行変更する方法

thomas [E-MAIL ADDRESS DELETED]
2009年 6月 20日 (土) 16:07:07 JST


Hai,

I want to change the xxxItems in javascript.

I tried some logics using kumu.FormHelper

The following is my coding

<html>

...............
...............
.................


<script>
function a(){
var form = Kumu.FormHelper.create('Form', 't');
var items = form['fooItems']
var item = items[0];

item['ccc']="CCC";
items[0]=item;

alert(items[0]['ccc']);                    //here i got the change
value...But in Screen there is no change

}

</script>
...............
...............
.................


<table border="1">
       <div id="fooItems">
       <tr>
         <td><span id="fooNo">100</span></td>

               <td><input type="text" id="aaa" title="AAA" /></td>
               <td><input type="text" id="bbb" title="BBB" /></td>
               <td><input type="text" id="ccc"></input></td>

       </tr>
       </div>
</table>

<input type ="button" onclick="a()"/>

................
................
</html>

is this logic correct?

In this logic i couldnt get the values in screen?

please give any other logic?

Thanks in advance,
トマス
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20090620/de849067/attachment.html>


Seasar-user メーリングリストの案内