Hi Jeet,
The CBrowserContainer (webclient/src_moz/CBrowserContainer.cpp) acts
as a WebProgressListener and a URIContentListener to the nsIWebBrowser
object. It also implements the nsIPrompt and nsIAuthPrompt interfaces.
However, not all these interface methods have been implemented yet. My
guess is that there is just some method that we need to implement to
get notifications of this kind. If you are willing to debug into some
C++ code, I would advise starting off by putting breakpoints in the
interface methods in this file.
_Ashu
jeet <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Hi Ed,
>
> Thanks for the response. The sad thing is users are used to clicking on
> a link and a download dialog coming up
> (that's what Netcape and Mozilla do), so the right click option is an
> workaround, but unfortunataly not the most suitable. I may have to
> resort to that if there is no other way.. :-)
>
> Of course, the best would be for WebClient to throw a UNKNOWN event. It
> doesn't however throw this event. If you would be kind enough (or
> someone) to point me in the right direction and I can try looking at the
> C++ code.
>
> BTW, when is the WebClient for 0.9.x being released? Would love to get
> my hands on it....:-)
>
> Thanks.
>
> -Jeet
>
>
> Ed Burns wrote:
>
> > jeet shahani <[EMAIL PROTECTED]> writes:
> >
> >> Hi,
> >> How can one detect a download action from the WebClient? From the dead
> >> silence in these newsgroups, I take it that it is not possible.
> >> So therefore this is either a bug or an enhancement to the WebClient
> >> framework?? Thanks.
> >
> >
> > Yes, you need to make an enhancement to the webclient framework.
> >
> > I suggest using the right menu button functionality. Install a mouse
> > listener and when the user does a right click, pop up a menu, then
> > interrogate the link and download it using java.net classes.
>
>
>
> --