|
-
Oct 18th, 2000, 08:51 AM
#1
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.
-
Oct 18th, 2000, 12:11 PM
#2
Fanatic Member
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.
-
Oct 18th, 2000, 07:29 PM
#3
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.
-
Oct 18th, 2000, 10:58 PM
#4
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|