找回密码
 加入
搜索
查看: 1289|回复: 2

修改网页表单时,怎么触发相关事件脚本?

[复制链接]
发表于 2010-1-1 10:28:51 | 显示全部楼层 |阅读模式
表单如下:
<input id="tomultiple" name="tomultiple" type="text" onbeforepaste='BeforePaste()' onKeyUp="this.value=this.value.replace(/[^0123456789]/g,'');calculatePrice()" onBlur="this.value=this.value.replace(/[^0123456789]/g,'');calculatePrice()" value="1">

用_IEFormElementSetValue($oText, "2")修改了输入框的值,但是却没有触发修改事件,没有调用calculatePrice()脚本进行相关计算。

请教解决方法。
发表于 2010-1-1 14:36:28 | 显示全部楼层
_IEFormElementSetValue ( ByRef $o_object, $s_newvalue [, $f_fireEvent = 1] )

第三个参数 默认是触发事件的
发表于 2010-1-1 14:38:24 | 显示全部楼层
实在不行就手动调用函数吧

_IENavigate ($oIE, 'javascript:calculatePrice())
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-22 15:29 , Processed in 0.076312 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表