Re: get notified only after all nested requests in a document are done loading

2010-04-07 Thread pengdw
There are some background ajax requests, NETWORK STOPPED really only indicates all documents and frame-documents are loaded. but ajax-requests are not counted. That's why you see some state of transitions after NETWORK STOPPED. On 2010-3-6 0:05, Jeeva wrote: > The "NETWORK STOPPED" message for th

Re: get notified only after all nested requests in a document are done loading

2010-03-05 Thread Boris Zbarsky
On 3/5/10 11:05 AM, Jeeva wrote: Question 1: When "NETWORK STOPPED" is printed out, can I assume that all frames have been loaded? I believe so... But worth checking the documentation. The "NETWORK STOPPED" message for the top level document comes well before it's child frames. So, I don't

Re: get notified only after all nested requests in a document are done loading

2010-03-05 Thread Jeeva
> > Question 1: When "NETWORK STOPPED" is printed out, can I assume that > > all frames have been loaded? > > I believe so... But worth checking the documentation. > The "NETWORK STOPPED" message for the top level document comes well before it's child frames. So, I don't think I can use the stat

Re: get notified only after all nested requests in a document are done loading

2010-03-04 Thread Boris Zbarsky
On 3/4/10 3:27 PM, Jeeva wrote: Question 1: When "NETWORK STOPPED" is printed out, can I assume that all frames have been loaded? I believe so... But worth checking the documentation. Question 2: in WebBrowserChrome, I saw "SameCOMindentity".. Is there a similar utility in Java interface? C

Re: get notified only after all nested requests in a document are done loading

2010-03-04 Thread Jeeva
> You need to check which nsIWebProgress the notification is for. > > -Boris Boris, thanks for your response.. I did search this forum for similar requests. I looked at your solution for : http://groups.google.com/group/mozilla.dev.embedding/browse_thread/thread/52cd5cbc889aa5b/d9cde1a73a8def2b

Re: get notified only after all nested requests in a document are done loading

2010-03-04 Thread Boris Zbarsky
On 3/4/10 1:19 PM, Jeeva wrote: In cases where a top level document has iframes, I want to be notified only after all the iframes are loaded. that way, when I get the DOM, I get everything. I have the following in "IWebProgressListener::onStateChange()", but that seems to be called for each fra