sumitalllwin Posted July 20, 2008 Posted July 20, 2008 I need a help from u guys here..I need to view the generated source of a web page..I tried downloading the web page.. It does not contain the generated source.But it has the source of the web page which is different from the generated source..And does not has the important links i need...But when i selected it and viewed generated source i can see the source code... I need to analyze this source code to get some links...Can anyone suggest a way to do it..i tried searching about this in the forum..but cant find anything tat will help me out... Pls help me out...Any suggestion is welcomed...Sorry about my english..i not good in it..
James Posted July 20, 2008 Posted July 20, 2008 Look at the _IE functions muttley Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
sumitalllwin Posted July 20, 2008 Author Posted July 20, 2008 Brook could be even more specific by giving me link i tryed reading the help for IE.au3..But cant find anything tat suit my need...Here is the link where i found the help filehttp://www.autoitscript.com/forum/index.php?showtopic=25631
NELyon Posted July 20, 2008 Posted July 20, 2008 That's an old old helpfile. The latest one is Included with Autoit. Look in the Autoit install directory for the full one, and search for "_IE".
sumitalllwin Posted July 20, 2008 Author Posted July 20, 2008 (edited) kenton i looked at the autoit help file..Now i m puzzled on which one to use..For reading the generated source code not the one which used to show up as default... _IEDocReadHTML or _IEBodyReadHTML. Which one will read the generated source not the code viewed by using view source option using IE... In _IEPropertyGet there is a line in help file like innerHTML is available for nearly all DOM elements using _IEPropertyGet. ...Need to know how to implement it...I m a newbie..So i need some example on this topic...Pls help me..Need to cpmplete the project i m in soon... This is the First few lines of the DOM source... <div id="main"> <div class="clear" id="submenu"> <div class="submenuTitle" id="submenuTitle">Sort by: <a href="#" onclick="searcher.sortBy(0);return false;" title="Sort by rankings -> the best way =)"><img src="/images/sort/sort_.gif" class="sortimage" alt="Sort by AfterVote rankings -> the best way =)" border="0"></a> <a href="#" onclick="searcher.sortBy(1);return false;" title="Sort by Google rankings"><img src="/images/sort/sort_google.gif" class="sortimage" alt="Sort by Google rankings" border="0"></a> <a href="#" onclick="searcher.sortBy(2);return false;" title="Sort by Yahoo rankings"><img src="/images/sort/sort_yahoo.gif" class="sortimage" alt="Sort by Yahoo rankings" border="0"></a> <a href="#" onclick="searcher.sortBy(3);return false;" title="Sort by MSN rankings"><img Should i use the div id main to view this dom source...Or how should i?... Edited July 20, 2008 by sumitalllwin
DaleHohm Posted July 22, 2008 Posted July 22, 2008 _IEDocReadHTML and _IEBodyReadHTML both return the source after client-side processing (generated source as you call it). One returns just the source inside the <BODY> tag, the other the full document. 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
sumitalllwin Posted July 22, 2008 Author Posted July 22, 2008 (edited) Thanx dale tat works for me..But i used sleep and then applied the function u said it works well... Dale i need to know is it possible to use POST method using your UDF or may be with some other way..i tried searching dint get any thing substantial. Edited July 22, 2008 by sumitalllwin
Brickoneer Posted July 22, 2008 Posted July 22, 2008 One way would be to write create your own form 'source', put it into the browser (see _IEBodyWriteHTML) and submit your own form.
sumitalllwin Posted July 22, 2008 Author Posted July 22, 2008 Brick tat seems to be a good idea..But i need to know if there is some way i can use the post method using autoit..Or i must use curl...
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