Re: proper catching of navigating errors in ie toolbar
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 02/17/05
- Next message: Igor Tandetnik: "Re: catching the IHTMLWindow2 onscroll event"
- Previous message: Zach: "catching the IHTMLWindow2 onscroll event"
- In reply to: krank2003_at_rambler.ru: "proper catching of navigating errors in ie toolbar"
- Next in thread: krank2003_at_rambler.ru: "Re: proper catching of navigating errors in ie toolbar"
- Reply: krank2003_at_rambler.ru: "Re: proper catching of navigating errors in ie toolbar"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Feb 2005 11:40:38 -0500
<krank2003@rambler.ru> wrote in message
news:6306c824.0502162051.4d33ec52@posting.google.com
> I have a toolbar which catches navigating error through handling
> DISPID_NAVIGATEERROR event. But unfortunately, it catches all
> navigating errors, even when frame or image not found. How I can make
> it handle only navigate errors for whole page only? Parameter
> TargetFrame seems to be always blank.
The first parameter pDisp refers to the WebBrowser object where the
error occurred. You can compare it to the interface pointer of the
top-level browser to see if it's the top-level page or the frame (use
COM identity comparison - explicitly query both pointers for IUnknown
and compare the results).
In my experience, failure to download images does not result in
NavigateError event.
--
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
- Next message: Igor Tandetnik: "Re: catching the IHTMLWindow2 onscroll event"
- Previous message: Zach: "catching the IHTMLWindow2 onscroll event"
- In reply to: krank2003_at_rambler.ru: "proper catching of navigating errors in ie toolbar"
- Next in thread: krank2003_at_rambler.ru: "Re: proper catching of navigating errors in ie toolbar"
- Reply: krank2003_at_rambler.ru: "Re: proper catching of navigating errors in ie toolbar"
- Messages sorted by: [ date ] [ thread ]