Hi,

The good way to do it :
 - Implement a ProgressListener
 - hook the OnStateChange method
 - When (progressStateFlags & STATE_STOP) && (progressStateFlags &
STATE_IS_NETWORK) you request the HttpChannel interface and use
GetRequestSucceeded(&r) and GetResponseStatus(&response)

See winembed project for ProgressListener and OnStateChange method.

Antoine

philippe wrote:
> I want to catch a <nsIWebNavigation> loadUri Error.
>
> In the mfcEmebed for example, a dialogBox is displayed when you set a
> bad adress.
>
> "<address> could not be found......"
>
> I want to catch those errors, and manage them by myself.
> 
> How can I do that
> 
> 
> thank's a lot for your help

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to