|
-
Feb 3rd, 2009, 09:55 AM
#1
Thread Starter
Member
[2008] HTML Content from a Frame
Hi,
I have read many posts on this - from here and other sites - but I don't have an answer that resolves my problem.
I want to read the HTML from a frame in a web page. I have started with a WebBrowser, which I browse through manually, attempting to scrape the details as I go. The reasn for using Web Browser is that it involves a complex form, which I can't really replicate in code.
If I directly query the WebBrowser info I get very little, and the frame data id represented simply by a FRAME TAG, and a simple URI with no form data (it needs the data to return the content)
I tried the Web Browser documentStream, and again I get very little.
The closest I got to the full HTML is the following code. However it is missing the OBJECT tag and it's contents, which is what I absolutely need:
Code:
htmlwin = wb.Document.Window
For Each frame As HtmlWindow In htmlwin.Frames
For Each el In frame.Document.All
If el.InnerHtml <> Nothing Then lb1.Items.Add(el.InnerHtml)
addLevel(el)
num += 1
Next
docFrame(frame)
Next
The AddLevel() iterates through the numerous element levels.
The raw HTML (as in "View Source" from Internet Explorer) would be perfect. I can't find a method to simply retrieve this.
Can anyone help me progress this? Many thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|