|
-
Nov 4th, 2000, 06:07 AM
#1
Thread Starter
Fanatic Member
I have a frames.html page that includes two frames "header and main"! What I want to do is retrieve the InnerHtml of the second frame called main. This is what I thought would work but it didn't:
Code:
WebBrowser.Document.DocumentElement(Frame("main")).InnerHtml
but it didn't work!
What can I do to get the html of the second frame??? Thanx
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Nov 4th, 2000, 08:25 AM
#2
Fanatic Member
I am not sure about this at all, since I never did any testing, but can't you use the Inet control to get the document, then parse the text, and finally get the SRC="mypage.'html'" part, then use the Inet again to down load that page?
-
Nov 4th, 2000, 08:44 AM
#3
Thread Starter
Fanatic Member
That would take twice as long ad my way! There should be a way I can get the html of a frame directly from the webbrowser!
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Nov 4th, 2000, 08:50 AM
#4
Fanatic Member
As I said, I am only guessing when it comes to this ... I really hate that web browser control as it is nothing mut Microsoft Internet Explorer ... I am not fond of Microsoft when it comes to internet things.
-
Nov 4th, 2000, 10:01 AM
#5
Thread Starter
Fanatic Member
Guyz, can someone tell me the exact parameters and what they do for this code!
WebBrowse1.Document.DocuemtnElement.InnerHtml
What does document element do???
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Nov 4th, 2000, 10:48 AM
#6
Hyperactive Member
Highlite it and press f-1 and LOOK at the HELP .
Theres an idea . Would you like someone to come over and press it for you ?
Visual Basic 6 SP4 on win98se
QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!
-
Nov 4th, 2000, 01:28 PM
#7
Thread Starter
Fanatic Member
Try this! I don't have the help files installed and i don't got the cd at the moment!!! :P
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Aug 22nd, 2001, 06:40 AM
#8
New Member
Dim Doc As HTMLDocument
Set Doc = WebBrowser1.Document.frames.Item(0).document ' or (1) or (2) etc
Debug.Print Doc.documentElement.innerHTML
A little more helpfull than the other posts I hope.
Last edited by twoshorts; Aug 22nd, 2001 at 06:53 AM.
-
Aug 18th, 2002, 03:40 PM
#9
New Member
Sorry, my english is not good. but i have the answer:
txtbox.Text = browser.Document.frames.Main.document.documentelement.innerhtml
"Main" is the Framename.
-
Aug 18th, 2002, 04:03 PM
#10
Lively Member
Originally posted by VIP3R
Try this! I don't have the help files installed and i don't got the cd at the moment!!! :P
your not using pirated software are you? or are you just letting a friend "borrow" msdn...
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
|