0

我有以下单选按钮代码:

测试.html

<table>
    <tr>
       <td>
         <webobject name=RadioButton1></webobject>  &nbsp;
         <webobject name=LocalString1>A</webobject>
       </td>
       <td>
         <webobject name=RadioButton2></webobject>  &nbsp;
         <webobject name=LocalString2>B</webobject>
       </td>
       <td>
         <webobject name=RadioButton3></webobject>  &nbsp;
         <webobject name=LocalString3>C</webobject>
       </td>    
    </tr>
 </table>

测试文件

RadioButton1: WORadioButton {
    name = "type";
    selection = requestType;
    value = 0;
}


RadioButton2: WORadioButton {
    name = "type";
    selection = requestType;
    value = 1;
}


RadioButton3: WORadioButton {
    name = "type";
    selection = requestType;
    value = 2;
}

我有以下 webbjects 要显示:A、B 和 C

<webobject name=A></webobject>

<webobject name=B></webobject>

<webobject name=C></webobject>

问题是:

我想在用户选择 RadioButton1 时显示 Web 对象 A,在选择 RadioButton2 时显示 B,在选择 3 时显示 C。

我将什么条件应用于单选按钮以及如何?

4

1 回答 1

0

您不使用 Project Wonder 有什么原因吗?

听起来您需要一个 AjaxObserveField 来观看按钮并触发更新。这需要奇迹!

http://wiki.wocommunity.org/dashboard.action

有真正有用的 Ajax 示例。

此链接可能有助于安装奇迹:

http://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation

于 2014-08-01T16:26:37.940 回答