Solved

webbrowser control: Accessing the HTML of frames

Posted on 2000-02-24
3
150 Views
Last Modified: 2013-12-26
I cant figure out how to access the html of frames in the web browser control in the document_complete event. The document available there is just the frameset document. I can get the number of frames with
document.frames.ItemCount (if I remember correctly)
but not a usable reference or the HTML of any of them. I've tried
document.frames.item(0), document.frames.item(1), etc.
but cant get anything at all from the resulting object.
For a non-framset document.body.outerHTML gets what I want - how can I get this for all of the frames inside a frameset document?
Thanks.
P.S.  I have to use this control and not the Internet Transfer Control or Winsock.
0
Comment
Question by:MikeThelwall
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
mcrider earned 100 total points
ID: 2554188
There is a complete example of walking through the frames in a WebBrowser control in http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=10295323 

When it walks through the frames, this example pulls out the HTML BODY...


Cheers!
0
 

Author Comment

by:MikeThelwall
ID: 2557377
You da man!!!
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2557653
Thanks for the points! Glad I could help!


Cheers!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question