Re: DISPID_NAVIGATECOMPLETE2 multiple events



"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


.



Relevant Pages

  • Re: Autosize bug in Excel 2007 shape textframes
    ... (and I have ugly work arounds) but are just corrumpting ... NickHK wrote: ... (And I have set up a "real" news reader, apologies for the multiple ... but does it jog the Text frame to the correct size ...
    (microsoft.public.excel.programming)
  • Re: Page alignment issue
    ... On 12/27/06, Aubrey wrote: ... the first page frame of a block should be a multiple of the group ... the kernel task stack should be 2-page aligned. ...
    (Linux-Kernel)
  • Re: Autosize bug in Excel 2007 shape textframes
    ... Then AutoSize the column. ... use a fixed width font and no formatting and just multiply by the ... (And I have set up a "real" news reader, apologies for the multiple ... but does it jog the Text frame to the correct size ...
    (microsoft.public.excel.programming)
  • Re: Place a table sideways (landscape) on a normal page (portrait)
    ... header rows will work. ... The table that goes in a frame is ... Will this work for a table that will cover multiple pages? ...
    (microsoft.public.word.pagelayout)
  • Re: Frameset download complete
    ... Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent) Handles AxWebBrowser1.DocumentComplete ... But how can I get the top-level browser. ... >> frameset and frame complete. ... > DocumentComplete on the parent frame fires after DocumentComplete on all ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)

Quantcast