Solved

receiving an event when IE changes URLs

Posted on 1998-09-22
3
179 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
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

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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 goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

932 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

12 Experts available now in Live!

Get 1:1 Help Now