Solved

Retrieving URL from parent browser

Posted on 1999-01-06
4
144 Views
Last Modified: 2013-12-26
I want to have an activex control im working on be able to retrieve the current url from the browser it resides in.
0
Comment
Question by:Montano_Vista
[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
  • 2
4 Comments
 

Expert Comment

by:T38Jet
ID: 1489473
use    Document.Location.Href
0
 

Author Comment

by:Montano_Vista
ID: 1489474
Your answer looks like a line of code, but I’m not sure how to use it.  Is it intended to be put in a vbscript that references an activex document?  If so, do I need to remake my project as an activex document instead of an activex control?  If this is the case; would I use PropBag to access it? I’m sorry if I appear stupid, but activex is new to me...

please give me just a little more info..

0
 
LVL 4

Accepted Solution

by:
chabaud earned 40 total points
ID: 1489475
Here is an example of a control with one label.
When you click the control in IE, the current url is diplayed by the label.

Private Sub UserControl_Click()
    on error resume next
    Label1.Caption = Parent.Script.document.Location.Href
    on error goto 0
End Sub

0
 

Author Comment

by:Montano_Vista
ID: 1489476
Thank you, I haven't tried it but it looks like what I need.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month6 days, 22 hours left to enroll

623 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