Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

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?
0
LUEBBERTD
Asked:
LUEBBERTD
  • 3
  • 3
  • 2
1 Solution
 
hesCommented:
Do you mean the source of a web page ? are you going to use the webbrowser control or xml ?
0
 
hesCommented:
For xml:

Dim xml
Dim strBase As String
Dim SString As String
  ' Create an xmlhttp object:
  Set xml = CreateObject("Microsoft.XMLHTTP")
  ' Or, for version 3.0 of XMLHTTP, use:
  ' Set xml = Server.CreateObject("http://www.experts-exchange.com")

strBase = "http://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
0
 
Richie_SimonettiIT OperationsCommented:
hearing... until clarify.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
rspahitzCommented:
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.
0
 
Richie_SimonettiIT OperationsCommented:
What do you mean by "frame definition"?
0
 
rspahitzCommented:
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.
0
 
rspahitzCommented:
OK--accept a question as your answer--that made sense--NOT!
LUEBBERTD, please explain.
0
 
Richie_SimonettiIT OperationsCommented:
what is the idea behind accept my comment?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now