saldous Posted March 16, 2007 Share Posted March 16, 2007 (edited) 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? Any ideas? thanks Edited March 16, 2007 by saldous Link to comment Share on other sites More sharing options...
saldous Posted March 16, 2007 Author Share Posted March 16, 2007 (edited) 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 March 16, 2007 by saldous Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted March 16, 2007 Moderators Share Posted March 16, 2007 Look in the help file at _IEGetObjByName (). Link to comment Share on other sites More sharing options...
saldous Posted March 16, 2007 Author Share Posted March 16, 2007 Big_daddy, you are a star, I got it working perfectly now using that Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now