Solved

How do I view frame source in vb code?

Posted on 2002-03-12
8
256 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
ID: 6858119
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
ID: 6858149
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
ID: 6858215
hearing... until clarify.
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6858632
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 16

Accepted Solution

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

Expert Comment

by:rspahitz
ID: 6894336
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
ID: 6894555
OK--accept a question as your answer--that made sense--NOT!
LUEBBERTD, please explain.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6894643
what is the idea behind accept my comment?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

911 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

19 Experts available now in Live!

Get 1:1 Help Now