WAP 中的触发事件

1、WAP中选择下拉菜单后自动提交

<option value="<bean:write name='pb' property='pb_id'/>">
   <onevent type="onpick">
   <go href="<%=basePath %>wapOrder.do?method=getPM&amp;client_id=<bean:write name='pb' property='pb_id'/>&amp;pb_id=${pb.pb_id}&amp;order_id=${order.order_id}&amp;cid=$(cid<%=str%>)" method="post" accept-charset="UTF-8"></go>
   </onevent>
   ${pb.pb_name}</option>

注:带参数的跳转需要将参数直接写到URL地址后面,在go标签中加 postfield传递参数时会传递不过去,但是在手机上使用的时候,还必须得加一个 postfield,否则他不自动跳转。

2、<onevent>的语法如下:
<onevent type="type">任务</onevent>
必选属性type的取值如表3-6所示:

表 3-6 type属性的取值
枚举值        如果用户执行了以下操作就执行任务
onpick       用户选择或不选一个<option>项时
onenterforward   用户使用<go>任务到达一个卡片时
onenterbackward  用户使用<prev>任务返回到前面的卡片时,或者按BACK按钮时
ontimer      当<timer>过期时

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值