imacleod

_IEAction("click")/javascript/focus issues?

1 post in this topic

#1 ·  Posted (edited)

I have a page with this button on it:

<td align=right><input type=submit name="UPDATE" value="Submit request"

onClick = "if(dev.checked) JavaScript:OpenHWin('devihelp.html')"></td>

 

and a script

$oIEextend = _IEAttach($hWnd,"hwnd")
;"UPDATE" is the name of the "Submit request" button
$oSubmit = _IEGetObjByName($oIEextend, "UPDATE")
_IEAction($oSubmit, "click")

that works fine, unless that javascript window opens, in which case I get 

--> IE.au3 T3.0-1 Warning from function _IEGetObjByName, $_IESTATUS_NoMatch (Name: UPDATE, Index: 0)

 

I tried intercepting the page and rewriting the HTML, changing the 'dev.checked' variable check so that it does not trigger a 'help' page, but that has unpredictable results, opening completely different pages than those expected. 

I really don't care whether the help page displays or not, as long as it does not interfere with the main flow. Any suggestions as to how I can handle this?

Edited by imacleod
spelling edit

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now