Solved

receiving an event when IE changes URLs

Posted on 1998-09-22
3
178 Views
Last Modified: 2010-04-01
Is it possible to write an ActiveX control that receives a URL changed event any time the IE browser in another window changes its URL?

I know the IWebBrowser interface publishes an event called NavigateComplete2(pDisp, url) - but thought this interface was used only for use as a container.

I would like to write an ActiveX control that sits in one window of IE and receives events about changes in a second window.

Let me know if you have any thoughts or ideas.

Thanks.

0
Comment
Question by:BrindleFly
3 Comments
 
LVL 1

Expert Comment

by:slinky
Comment Utility
How about using the Javascript OnLoad event?
0
 

Author Comment

by:BrindleFly
Comment Utility
The JavaScript OnLoad() event can only be hooked if it appears on the HTML page that is loading.  I need to catch the change event from another window of the browser.  This window is not necessarily under my control - so JavaScript is out of the question.

My hope is to have an ActiveX control that hooks events coming from the browser.




0
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
Comment Utility
Look into the following KB article. The method allows you to capture the events fired by any newly created IE4 window.

FILE: IEHelper-Attaching to IE4 using a Browser Helper Object
http://support.microsoft.com/support/kb/articles/Q179/2/30.asp
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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

744 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

17 Experts available now in Live!

Get 1:1 Help Now