首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >webobjects中的条件单选按钮

webobjects中的条件单选按钮
EN

Stack Overflow用户
提问于 2014-08-01 09:21:11
回答 1查看 265关注 0票数 0

下面是单选按钮的代码:

Test.html

代码语言:javascript
复制
<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

代码语言:javascript
复制
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

代码语言:javascript
复制
<webobject name=A></webobject>

<webobject name=B></webobject>

<webobject name=C></webobject>

的问题是:

当用户选择RadioButton1时,我想显示webobject A,当选择3时,当选择RadioButton2 &C时,显示B。

我适用于单选按钮的条件是什么?

EN

回答 1

Stack Overflow用户

发布于 2014-08-01 16:26:37

你为什么不使用“神奇工程”?

听起来你需要一个AjaxObserveField来监视按钮并启动更新。这需要奇迹!

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

有些Ajax示例非常有用。

此链接可能有助于安装link:

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25076913

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档