0

ラジオボタンには次のコードがあります。

Test.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>

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;
}

表示するWebオブジェクトは次のとおりです: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 に答える