Hi,
I've been spending a few hours on XPCOM and I havent come to that point yet:) As far as I know, we would have to use the nsIWebProgressListener interface to listen to event associated with page loading. But I still dont know what kind of events are available. If you find out any thing, let me know:)
Best regards
Vonuyx





Segfault wrote:

Hi Vonuyx,

I am trying to do something similar.  I have been trying to write
something that will attach to a running instance of Firefox and allow
me to get a DOM handle so I can "drive" Firefox.  At this point though
I would even settle for being able to know when a page was finished
rendering.  Could you post any sample code here that you have come up
with?  I'm really pulling my hair out on this one :)

Thanks,
Segfault

vonuyx wrote:

Hi,
I've been reading through a lot about XPCOM and I think I have

figured

out what to do. Thanks a lot!
Vonuyx

Gangadhar NPK wrote:


Using XPCOM, one can attach listeners to various events in a

browser

IIRC nsIWebProgressListener and such events. Once you are

subscriber to

an event, you will be notified about that event. On obtaining the
notification you can proceed with your application.
I think the xpcom-book

(http://www.mozilla.org/projects/xpcom/book/cxc/)

has a simple code for soemthing similar. Please check up if it can

help

you.
hth
Gangadhar
vonuyx wrote:


Thanks again for your help.
What I am trying to do is not to embed, but to create an extension

for

Firefox. I suppose there is some difference between two things.

Would

you (or anyone else) tell me where I can find some sample source

codes

fro this?
Thanks a lot
Vonuyx

Doug Turner wrote:


vonuyx wrote:


Hello,


I want to create a component (suppose an XPCOM one) that can be 'attached' to each Firefox browser window and be informed every

time

the user browses to a new page. I also want to get the address

of

these pages as well. In IE it can be done by implementing the
IWebBrowser interface to create a so-called BHO. Any one has any


idee of how to do this in Firefox?
Thankyou very much in advance!


Start here: http://www.mozilla.org/projects/xpcom/

When you understand the gist of XPCOM, take a look at:

http://www.mozilla.org/projects/embedding/


http://www.mozilla.org/projects/embedding/embedapiref/embedapiTOC.html

Hope this helps,
Doug




_______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to