下面是单选按钮的代码:
Test.html
<table>
<tr>
<td>
<webobject name=RadioButton1></webobject>
<webobject name=LocalString1>A</webobject>
</td>
<td>
<webobject name=RadioButton2></webobject>
<webobject name=LocalString2>B</webobject>
</td>
<td>
<webobject name=RadioButton3></webobject>
<webobject name=LocalString3>C</webobject>
</td>
</tr>
</table>Test.wod
RadioButton1: WORadioButton {
name = "type";
selection = requestType;
value = 0;
}
RadioButton2: WORadioButton {
name = "type";
selection = requestType;
value = 1;
}
RadioButton3: WORadioButton {
name = "type";
selection = requestType;
value = 2;
}我有以下网页显示: A,B&C
<webobject name=A></webobject>
<webobject name=B></webobject>
<webobject name=C></webobject>的问题是:
当用户选择RadioButton1时,我想显示webobject A,当选择3时,当选择RadioButton2 &C时,显示B。
我适用于单选按钮的条件是什么?
发布于 2014-08-01 16:26:37
你为什么不使用“神奇工程”?
听起来你需要一个AjaxObserveField来监视按钮并启动更新。这需要奇迹!
http://wiki.wocommunity.org/dashboard.action
有些Ajax示例非常有用。
此链接可能有助于安装link:
http://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation
https://stackoverflow.com/questions/25076913
复制相似问题