It's working! Thanks!
Now, this solving this problem, lead to another: is there any way we can
detect if the request (and HTML itself) comes from the top browser window
and not from a frame or iframe inside of it?
For IE it was an easy job - I just had to compare the IDispatch pointer
received in the headers of browser events with the one I knew it's from
top browser window.
Thanks again,
DC
On Mon, 29 Jan 2007 20:08:06 +0200, Nickolay Ponomarev
<[EMAIL PROTECTED]> wrote:
On 1/29/07, Mike Shaver <[EMAIL PROTECTED]> wrote:
On 1/29/07, Nickolay Ponomarev <[EMAIL PROTECTED]> wrote:
> It is possible to hook up into the load process and receive the data
> as it is being loaded from the server, but AFAIK there are no APIs
> specifically for doing that.
You can register as a parser data listener by implementing
nsIUnicharStreamListener and registering yourself in the appropriate
XPCOM category.
http://lxr.mozilla.org/mozilla/source/parser/htmlparser/public/nsParserDataListener.h
has more explanation.
Heh, never saw that. This is only for text/html documents, right?
Nickolay
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom