|
-
Jan 5th, 2001, 08:26 AM
#1
Thread Starter
Fanatic Member
I have a page loaded in my WebBrowser on Form1. That pagge has two frames in it. One is called "Header" and the other is called "Main". I want to retrieve the html of "Main". I can retrieve the html of the page that is loaded using this:
Code:
WebBrowser1.Document.documentelement.InnerHtml
But I need a way to retrieve the HTML of the frame called "main".
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Jan 5th, 2001, 08:59 AM
#2
i think...
since a frame is loaded from another webpage...usually the top (or the left) has focus. try to set the focus onto the "main" frame...
or better yet...get just the main frame into the Webbrowser..then read it...
just an idea...I've never tried to get the source in a frame situation.
maybe use the inet control?
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jan 5th, 2001, 10:14 AM
#3
Thread Starter
Fanatic Member
The Inet Control is not a good component to use in my situation. My theory is this... Since The browser loads both frames into one page, that means that it has to retrieve the HTML of both frames. And if it retrieves the HTML of both frames, then i should be able to retrieve that HTML from it.
About your idea of loading the main page into the browser... That doesn't work because they have a script on the page that takes u back to frames if u try to load their site without frames. If there's a way to disable javascript from loading in a webbrowser, i'd appreciate it if u tell me how! Thanx
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Jan 5th, 2001, 11:39 AM
#4
Thread Starter
Fanatic Member
cant anyone help me out????
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Jan 5th, 2001, 11:49 AM
#5
Frenzied Member
just load into you MSIE and right click and view source!!
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
|