Results 1 to 10 of 10

Thread: Maybe I'm going at this the wrong way???

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Unhappy

    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


  2. #2
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    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?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    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


  4. #4
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    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.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    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


  6. #6
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    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 !!!!!

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    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


  8. #8
    New Member
    Join Date
    Jun 2001
    Posts
    10
    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.

  9. #9
    New Member
    Join Date
    Aug 2002
    Posts
    1

    Thumbs up

    Sorry, my english is not good. but i have the answer:

    txtbox.Text = browser.Document.frames.Main.document.documentelement.innerhtml


    "Main" is the Framename.

  10. #10
    Lively Member Liquid Pennies's Avatar
    Join Date
    Jun 2002
    Location
    Charlotte, NC
    Posts
    124
    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
  •  



Click Here to Expand Forum to Full Width