找回密码
 加入
搜索
查看: 2374|回复: 1

[IE类操作] form 查找name名字返回为0的问题

[复制链接]
发表于 2010-3-16 16:13:39 | 显示全部楼层 |阅读模式
<form method="post" onsubmit="return doRegsRegisterNowCheck()"> 没有name和id

此form里有一个下拉菜单

<td><label for="registration_html_registration_options" class="required">选择选项: </label> &nbsp;&nbsp;&nbsp;
                                        <select name="PAGE" id="PAGE" tabindex="2" onchange="doRegisterButtons()">
                                                        <option value="register">立即注册</option>
                                                        <option value="registerlater">以后提醒我(7 天后)</option>
                                                        <option value="neverregister">不注册</option>

我想选择第三项“不注册”,以后,自动会出现
<input name="Continue" type="submit" accesskey="c" id="registration_html_rightbutton_continue" tabindex="29" title="继续" value="继续" class="hidden">

这个继续按钮完成 注册过程

我参考了一些案例,然后这样写的,因为form没有name,这样写不起作用
$oIE = _IEAttach ("Adobe Design Suite Premium CS3", "Embedded")
$oForm = _IEFormGetObjByName ($oIE, "")
$oQuery = _IEFormElementGetObjByName ($oForm, "PAGE")
_IEFormElementOptionSelect ($oQuery ,"neverregister", 1 ,"byValue")

请问大侠们,遇到这种情况,怎么处理呢?
发表于 2010-3-16 19:28:32 | 显示全部楼层
不需
;$oQuery = _IEFormElementGetObjByName ($oForm, "PAGE")
可以改成
$oQuery = _IEGetObjById ($oIE, "PAGE")
我是新手!!正在学习中
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-18 19:25 , Processed in 0.075571 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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