Results 1 to 5 of 5

Thread: Is This Possible (Simple)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Talking

    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


  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    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"

  3. #3

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


  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    cant anyone help me out????
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  5. #5
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    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
  •  



Click Here to Expand Forum to Full Width