Jump to content
Sign in to follow this  

Need help clicking a strange link in IE

Recommended Posts



Part of the program I'm working on is to click a link on site but I'm having serious torubles with doing. I've spent hours trying to solve it. So here is the problem.

On the site there is something that appears to be a link but it is not that simple. When I use _IELinkGetCollection and run through all links it don't see it ;)

In the source code I can see it but this is what I found with the great DebugBar

<A id=gvViewListing_ctl03_linkEdit title=Edit style="CURSOR: hand; COLOR: blue" onclick="var targetURL; targetURL ='./Floorplan_Edit.aspx?pge=editfp&amp;fpid=654073&amp;propid=713056&amp;pid=BA&amp;md=edt';var URlstrig ='width=658,height=650,top=20,left=80,scrollbars=yes,toolbar=no,location=no,menubar=no,resizable=n

o,status=yes'; fpwindow=window.open(targetURL,'Edit_Floorplan',URlstrig);fpwindow.focus();" href="java script:__doPostBack('gvViewListing$ctl03$linkEdit','')"><IMG style="CURSOR: hand; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" alt=Edit src="./Images/buttons/popup-icon.gif"><SPAN style="PADDING-LEFT: 5px; CURSOR: hand; TEXT-DECORATION: underline">Edit</SPAN></A>

I also can't see this popup-icon.gif with _IEImgGetCollection

This link is in few tables and a iframe (if this matters)

So is there a way to click it? And my other quesion is - it seems that this links calls "java script:__doPostBack('gvViewListing$ctl03$linkEdit','')"

Is there other way to call this function without clicking the link? I even tried to use _IEBodyWriteHTML to make another link that I can click that calls this function but I did not succeed.

Any help will be appreciated

Edited by muhmuuh

I ran. I ran until my muscles burned and my veins pumped battery acid. Then I ran some more.

Share this post

Link to post
Share on other sites

First, I can't take any credit for DebugBar other than telling people how great it is...

Does it matter that your like is in an iFrame? Absolutely! You need to drill into Frames and iFrames as if they were new documents using _IEFrameGet* functions. DebugBar can help you with this using the tree structure on the left and the View Source drop-down (document with <> overlay) on its toolbar.


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post

Link to post
Share on other sites

Tank you, Dale, for all your help!

As I'm still a newbie I don't quite understand how frames and iframes work (and what they are actually). I seached the web and read some things and now it is little more clear. Before I thought that if I dont see the link with _IELinkGetCollection($ie) I won't see with _IELinkGetCollection($frame). Now it works

Again, thank you very much


I tought that a great tool like debugbar can only be made by a great man by you

I ran. I ran until my muscles burned and my veins pumped battery acid. Then I ran some more.

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
Sign in to follow this