Jump to content
Sign in to follow this  
sumitalllwin

VIEWING GENERATED SOURCE OF A WEBPAGE

Recommended Posts

sumitalllwin

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..

Share this post


Link to post
Share on other sites
NELyon

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".

Share this post


Link to post
Share on other sites
sumitalllwin

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 -&gt; the best way =)"><img src="/images/sort/sort_.gif" class="sortimage" alt="Sort by AfterVote rankings -&gt; the best way =)" border="0"></a>&nbsp;<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>&nbsp;<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>&nbsp;<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 by sumitalllwin

Share this post


Link to post
Share on other sites
DaleHohm

_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

Share this post


Link to post
Share on other sites
sumitalllwin

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 by sumitalllwin

Share this post


Link to post
Share on other sites
Brickoneer

One way would be to write create your own form 'source', put it into the browser (see _IEBodyWriteHTML) and submit your own form.

Share this post


Link to post
Share on other sites
sumitalllwin

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...

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  

×