Jump to content

Recommended Posts

Posted

Hi,

 

 

I''m having trouble to fire an event in a IE website.
Now I found the row / id I need but I don't see an onevent() or something.

I tried _IEaction($obj, click) and I tried $obj.fireevent(onmousedown) but since there seem to be no events it does nothing.
I don't understand how to fire the event from this id.

Attempted in the <span> 'UserList_inner_VXTableRowMenu.edit_SPAN'
and on the href 'edit' , but nothing seems to do anything.

Any ideas on how to get the <edit> action to fire?

 

 

Attempt A

Func _EditUser()
    ;---------------------------------------------------------------------
    ;Klik op de verborgen knop  [Verwijderen]
    ;---------------------------------------------------------------------
    Local $oDelete = _IEGetObjById($oIE, 'UserList_inner_VXTableRowMenu.edit_SPAN')
    ConsoleWrite("$oDelete IsObj : " & IsObj($oDelete) & @CRLF)
    _IEAction($oDelete, "focus")
    _IEAction($oDelete, "click")
    $oDelete.FireEvent('onmousedown')
    ;---------------------------------------------------------------------
EndFunc   ;==>_EditUser

Attemp B

Func _EditUser()
    ;---------------------------------------------------------------------
    ;Klik op de verborgen knop  [Verwijderen]
    ;---------------------------------------------------------------------
    Local $oDelete = _IEGetObjById($oIE, 'edit')
    ConsoleWrite("$oDelete IsObj : " & IsObj($oDelete) & @CRLF)
    _IEAction($oDelete, "focus")
    _IEAction($oDelete, "click")
    $oDelete.FireEvent('onmousedown')
    ;---------------------------------------------------------------------
EndFunc   ;==>_EditUser

 

 

OLimage.jpg

Posted

I think there are several ID=EDIT on your page and that is why example 2 doesn't work. Make a combo of the 2 examples like this:

Func _EditUser()
    ;---------------------------------------------------------------------
    ;Klik op de verborgen knop  [Verwijderen]
    ;---------------------------------------------------------------------
    Local $oDelete = _IEGetObjById($oIE, 'UserList_inner_VXTableRowMenu.edit_SPAN')
    $oDelete2 = _IEGetObjById($$oDelete, 'edit')
    ConsoleWrite("$Test : " & oDelete2.innerhtml & @CRLF)
    _IEAction($oDelete, "click")
    ;---------------------------------------------------------------------
EndFunc   ;==>_EditUser

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...