Solved

receiving an event when IE changes URLs

Posted on 1998-09-22
3
184 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
[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 Comments
 
LVL 1

Expert Comment

by:slinky
ID: 1173456
How about using the Javascript OnLoad event?
0
 

Author Comment

by:BrindleFly
ID: 1173457
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
ID: 1173458
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

728 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