LUEBBERTD
asked on
How do I view frame source in vb code?
How do I view frame source in vb code?
Using the web browser control need to view the frame source of an intranet page
How do I read the frame definition thru vb code?
Using the web browser control need to view the frame source of an intranet page
How do I read the frame definition thru vb code?
Do you mean the source of a web page ? are you going to use the webbrowser control or xml ?
For xml:
Dim xml
Dim strBase As String
Dim SString As String
' Create an xmlhttp object:
Set xml = CreateObject("Microsoft.XM LHTTP")
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject("https://www.experts-exchange.com")
strBase = "https://www.experts-exchange.com"
DoEvents
' Opens the connection to the remote server.
xml.Open "GET", strBase, False, "", ""
' Actually Sends the request and returns the data:
xml.Send
SString = xml.responseText
Now just set a textbox.text = SString
or a RichTextBox.text = SString
Dim xml
Dim strBase As String
Dim SString As String
' Create an xmlhttp object:
Set xml = CreateObject("Microsoft.XM
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject("https://www.experts-exchange.com")
strBase = "https://www.experts-exchange.com"
DoEvents
' Opens the connection to the remote server.
xml.Open "GET", strBase, False, "", ""
' Actually Sends the request and returns the data:
xml.Send
SString = xml.responseText
Now just set a textbox.text = SString
or a RichTextBox.text = SString
hearing... until clarify.
Since frames are defined separate from the source, in order to get the "frame source" you need to read the frame definition to find the path to the frame source, then re-load the Inet control to get the frame source.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
LUEBBERTD, are you still with us? Did my comment help? I'm guessing that you're talking about HTML frames and not VB frames, right? If so, my comment should get you going.
OK--accept a question as your answer--that made sense--NOT!
LUEBBERTD, please explain.
LUEBBERTD, please explain.
what is the idea behind accept my comment?