Subj : Re: How do we get notified of an AsyncRead() To : Shreekanth From : Brendan Eich Date : Thu Jun 03 2004 07:49 pm Shreekanth wrote: > 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. Good question, but completely misposted -- you want the embedding newsgroup. See this news message's headers. /be .