Solved

webbrowser control: Accessing the HTML of frames

Posted on 2000-02-24
3
146 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now