Hi
I would like to get some clarifications about
Netscape plug-ins.
I am developing a plug-in in C++ for MIME type
"htm/html". I have used the WinNPSDK40 from the Netscape site for
windows. I have made slight modifications to get the html data from the
void* buffer of NPP_Write. I make slight modifications to the HTML
source code and I want to put back the HTML data onto the browser. I
call the NPN_NewStream and the NPN_Write functions in sequence in the windows procedure for handling messages (PluginWindowProc in
the file). But the problem is once the html is put back to the
browser, the plug-in is unloaded. It happens when NPN functions (calls to
Netscape browser) are made when I capture the messageWM_PAINT in the windows procedure.
1) I would like to know if it is possible to put back data onto the
HTML to render the data on the browser from the plug-in.
2) Also, is it possible to develop a plug-in which gets loaded every
time Netscape.exe is started and unloaded when
Netscape browser instance is closed?
3) How do we get the source of all the HTMLs loaded
in case of frame based applications?
4) Is it possible to disable certain menu items and
tool bar items or atleast is it possible to display some message when
the tool bar or some menu option is clicked?
5) Any Netscape APIs called from within the plug-in
results in a crash in the release mode compilation and gives a
first chance exception in the debug mode.
6) When a large HTML file is opened with the
plug-in, only half the contents are displayed. Is it because of the buffer
size returned by the NPP_WriteReady function? I am not able to
increase the size of the return value as the values double and long are
not accepted when I allocate the character buffer for a temperory
pointer where I am storing the html contents.
7)Whent he plug-in is loaded and the html contents
are rendered back to the browser, the directory (URL) changes to the
cache directory for that user in Netscape. Why does this happen?
8) The plug-in does not get loaded when the html
pages are hosted on a site and opened from that site.
My requirement is as follows:
I would like to get the source contents of the HTML
in case of frame based applications for each document in the html
loaded, modify the contents and put it back onto the browser. Is it
possible to achieve this in Netscape?
Kindly reply for all the queries as the requirement
is urgent.
Anticipating your prompt response.



