[Seasar-user:17298] [Kumu]Kumu.FormHelperでcheckboxの値についって

thomas [E-MAIL ADDRESS DELETED]
2009年 4月 23日 (木) 15:43:18 JST


Hai,


I am using kumu.FormHelper to get the items value.
I can get the textbox value in the list.
But i want to get the check box value.whether the checkbox is checked or
not?


Here with i attached my HTML coding...

HTML
:::::::::


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:te="http://www.seasar.org/teeda/extension" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type=" text/css" href="../../css/global.css"/>
<link rel="stylesheet" type=" text/css" href="../../css/master.css"/>
<script language="JavaScript" type="text/javascript"
src="../../js/ajax.js"></script>
<script language="JavaScript" type="text/javascript"
src="../../js/kumu.js"></script>
<script>

*function getEmployeeCode(){
var form = Kumu.FormHelper.create('Form', 't');
var items = form['employeemasterItems']
var item = items[0];
alert(item['employeecode']);                                     //I can get
the value here.
alert(item['check'])
//here undefined*

}

</script>
</head>
<body>
<form id="Form"><br/>
<table class="container" border="1" align="center" bordercolor="#408080">
<tr class="heading">
<td></td><td><label id="employee"/></td>
<td><label id="employeename"/></td>
</tr>
<div id="employeemasterItems">
<tr class="item">
<td><input type="checkbox" id="check"/></td>
<td><input type="text" id="employeecode"></input></td>
<td><span id="employeefirstname"></span></td>
</tr>
</div>
<tr><td colspan="18">
<input type="button" id="select" value = "アサイン"
onclick="getEmployeeCode()"/>
</td></tr>
</table>
</form>
<table align="center"><span id="allMessages"
style="color:red;"/></table></body>
</html>


How can i get the check box value?

Thanks in advance....
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20090423/93be865d/attachment.html>


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