j00ls Posted October 24, 2008 Share Posted October 24, 2008 (edited) Hello AutoFriends! I have a little problem, i have been very successfully using _IETableGetCollection in my scripts (love it) so I would like to keep using it. however: It does not return any information about images in the table and the links on those images. What I need: the image source (<img scr="THIS">) and the links on the images (<a href="THIS><img aso.) is there any way to use IE.au3 for this or do I have to start from scratch? Thank you very much! Edited October 24, 2008 by j00ls Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 24, 2008 Share Posted October 24, 2008 If they're in a frame you have to get it from inside the frame,there was a discussion about this not long ago. If they aren't why not use _IETagNameGetCollection() and use IMG or A as the tag? Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
j00ls Posted October 24, 2008 Author Share Posted October 24, 2008 (edited) as I understood _IETagNameGetCollection gets me all the Tags on the website... but I need to affiliate the images with the rows of the table they are in. Ill try an example (its supposed to be a table) Name | value | img img | text | link&img I need to read all those infos into one row of the array i want to create... as I understand it if I go with IETagNameGetCollection i just have the (hundreds) of images on the site without knowing where they belong. I will probably have to parse the site from scratch and go with the StringRegExp command - however the syntax is something of its own. Anybody know a little easy to understand and get-into howto? thanks! Edited October 24, 2008 by j00ls Link to comment Share on other sites More sharing options...
DaleHohm Posted October 24, 2008 Share Posted October 24, 2008 _IETagnameGetCollection can be scoped down... for example, if you get a reference to a table, say $oTable, you then then get all images in the table wirh _IETagnameGetCollection($oTable, "img"). Similarly you can dig deeper... for example, if you know that the image you want is in the 10th row and the 3rd column of the table you can: $oTR = _IETagnameGetCollection($oTable, ""TR", 9) $oTD = _IETagnameGetCollection($oTR, ""TD", 2) $oImg = _IETagnameGetCollection($oTD, ""img", 0) Dale 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 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