Solved

How do I view frame source in vb code?

Posted on 2002-03-12
8
249 Views
Last Modified: 2012-05-04
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
Comment
Question by:LUEBBERTD
  • 3
  • 3
  • 2
8 Comments
 
LVL 20

Expert Comment

by:hes
Comment Utility
Do you mean the source of a web page ? are you going to use the webbrowser control or xml ?
0
 
LVL 20

Expert Comment

by:hes
Comment Utility
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
 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
hearing... until clarify.
0
 
LVL 22

Expert Comment

by:rspahitz
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 50 total points
Comment Utility
What do you mean by "frame definition"?
0
 
LVL 22

Expert Comment

by:rspahitz
Comment Utility
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
 
LVL 22

Expert Comment

by:rspahitz
Comment Utility
OK--accept a question as your answer--that made sense--NOT!
LUEBBERTD, please explain.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
what is the idea behind accept my comment?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now