Re: DISPID_NAVIGATECOMPLETE2 multiple events
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Mon, 12 Nov 2007 22:29:23 -0500
"Tech" <support@xxxxxxxxxxxxxxxxxxx> wrote in message
news:ebm9r9ZJIHA.5328@xxxxxxxxxxxxxxxxxxxx
"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message
news:%23%23rpuUYJIHA.3940@xxxxxxxxxxxxxxxxxxxxxxx
Tech <support@xxxxxxxxxxxxxxxxxxx> wrote:
I am recording DISPID_NAVIGATECOMPLETE2 from a BHO. Basically when
this even is triggered I write the URL to a file. I want to record
it for each URL visited. However for some reason I get multiple
recolrds in a file and debugging shows that
DISPID_NAVIGATECOMPLETE2 is triggered multiple times whe one URL is
visited.
NavigateComplete2 event is fired once for each frame on the page
(and the page itself). The first parameter - an IWebBrowser2 pointer
- lets you know which frame (or top-level browser) this event has
come from.
Any design considerations to avoid double records for frames?
Which part of "the first parameter lets you know where the event has
come from" do you find difficult to understand? Just filter out the
events that come from a frame, as opposed to top-level browser.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- DISPID_NAVIGATECOMPLETE2 multiple events
- From: Tech
- Re: DISPID_NAVIGATECOMPLETE2 multiple events
- From: Igor Tandetnik
- Re: DISPID_NAVIGATECOMPLETE2 multiple events
- From: Tech
- DISPID_NAVIGATECOMPLETE2 multiple events
- Prev by Date: Re: DISPID_NAVIGATECOMPLETE2 multiple events
- Next by Date: Re: DISPID_NAVIGATECOMPLETE2 multiple events
- Previous by thread: Re: DISPID_NAVIGATECOMPLETE2 multiple events
- Next by thread: Re: DISPID_NAVIGATECOMPLETE2 multiple events
- Index(es):
Relevant Pages
|