Results 1 to 4 of 4

Thread: Working with Frames

  1. #1
    Guest
    To retrieve the content of a webbrowser :

    a = WebBrowser1.Document.documentElement.innerHTML

    How do retrieve all the contents of a web page which has frames within the webbrowser object? (all the web pages, especially when the frame uses javasript)

    Thanks.

  2. #2
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Post Try this.

    Code:
    Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
        If pDisp is WebBrowser1.Object Then
            a = WebBrowser1.Document.documentElement.innerHTML 
        End If
    End Sub
    That should take care of your Frames Problem.

    All the best.

  3. #3
    Guest

    Re: Try this.

    Originally posted by OneSource
    Code:
    Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
        If pDisp is WebBrowser1.Object Then
            a = WebBrowser1.Document.documentElement.innerHTML 
        End If
    End Sub
    That should take care of your Frames Problem.

    All the best.

    I've tried this but it will only retrieve the master page, what I want to get is the other pages as well.

    For example a web page contains 3 frames, then maybe I'll need 3 string variables to hold the content of each of the 3 web page or maybe I can concatenate all three into one string variable.

    Do you know how to do this?
    Thanks.

  4. #4
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    URL please.

    Hi d4vid,

    I'm pretty sure that it's possible to do what you want to do. It will be easier to help you if you can give the URL that you're trying to access. Otherwise, you can search MSDN for the Webbrowser Control.

    All the best.

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