Solved

How do I view frame source in vb code?

Posted on 2002-03-12
8
272 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…

756 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