Hi All,

I am working on a Mozilla Firbird extension. Purpose of the application is to display the encryptd contents from server with a no standard content type say text/x-html-xxx.

The application have two parts. First part is to decrypt the contents and second is two render them in a stripped down browser window.

For the first part I have written a Stream Converter to convert the the user-defined content type to text/html and it is working prefectly.

For the second part, I want the main browser window to open a stripped down window with operations like copy, selcect, view source, print etc disabled. This new window should open when content are of text/x-html-xxx are received as a result of hiper link click in the main browser window.

After going throgh the documentation I have the following understanding of how this can be achieved.

1. I write a implentation of the nsIURIContentListener and register with nsIURILoader during xomponent registration.

2. Use the DoContent method of the nsIURIContentListener to pump up the contents in the new window.

Is my understanding of what I am doing is correct? I would be gratful if some one can guide me or through some light on the ablove.


Following things are not yet clear to me:-


1. How to create the instance of new window either from C++ or JS.

2. What do I need to do to render the contents in the new window? I dont need any special type of contents viewer. I just want to use what is already there and disable some of the features of the window.

Thanks in advance,

Regards,

Raj Saini

_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to