Subj : How do we get notified of an AsyncRead() To : netscape.public.mozilla.jseng From : Shreekanth Date : Fri Jun 04 2004 03:02 am Hi, I have implemented some code which embeds gecko. This code just instantiates a nsWebBrowser and tries to LoadURI(). For this I have implemented a few interfaces like the nsIWebBrowserChrome, nsIEmbeddingSiteWindow, nsIWebProgressListener,nsIWidget etc. It is compiled and it seems to run. But its not loading the document when I call nsWebBrowser::LoadURI(). No errors are returned. As I was stepping through the code, I found out that the nsWebBrowser::LoadURI() calls nsDocShell::LoadURI(). This calls an AsyncRead() and passes the request param to it and the code returns. This obviously means that the read is happening in the background. I would like to know how we get notified when the data is ready in the stream i.e the background read is complete. Is there any call-backs/event handlers we should register anywhere? If yes, please point out the place where we can register call-backs. Thanks in advance, Shreekanth .