Jump to content

IELINKGETCOLLECTION ID's


Recommended Posts

If I run this:

$oxLinks = _IELinkGetCollection ($oIE)
For $oLink In $oxLinks
    MsgBox(0, "Link Info", $oLink.id)
Next

It returns me a list of links by their ID. The question is how do I then perform an _IEAction on one of those ID's in the collection?

I've looked in the help and I'm stumped. I know when using IEFormGetCollection I then have to use IEFormElementGetObjByName, but when I use IELinkGetCollection what do I use?

This is the HTML code of the link / button I'm wanting to click on:

CODE
<a href="#" onclick="clear_editProfileForm();document.forms['editProfileForm'].elements['editProfileForm:_link_hidden_'].value='editProfileForm:okButton';if(document.forms['editProfileForm'].onsubmit){var result=document.forms['editProfileForm'].onsubmit(); if( (typeof result == 'undefined') || result ) {document.forms['editProfileForm'].submit();}}else{document.forms['editProfileForm'].submit();}return false;" id="editProfileForm:okButton" onmousedown="java script: this.className='sswsbutton sswsbutton-down'" onmouseup="java script: this.className='sswsbutton sswsbutton-hover'" onmouseover="java script: this.className='sswsbutton sswsbutton-hover'" onmouseout="java script: this.className='sswsbutton'" class="sswsbutton">Save</a>

So the link ID = editProfileForm:okButton but how do I get IEAction to click it? :whistle:

Any ideas?

thanks

Edited by saldous
Link to comment
Share on other sites

ok, I may be getting there by trying:

$SaveButton = _IELinkGetCollection ($oIE, "editProfileForm:okButton")

_IEAction ($SaveButton, "click")

It clicks something, but isn't doing what I want it to do, maybe as this is a java script link?

Edited by saldous
Link to comment
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
 Share

  • Recently Browsing   0 members

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