Regarding Netscape plugins

Firefox, Thunderbird, SeaMonkey, Camino, Mozilla, Netscape 6/7/8/9, and all Gecko-based browsers discussion and support forum.
(MozInfo701, Netscape Browser Archive)

Moderators: Antony, Edward, profman, Ramona

Regarding Netscape plugins

Postby srividya » Thu 25 Jul, 2002 11:11 pm

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.
Thanks and Regards
Sri Vidya Sundararaman.
srividya
new member
new member
 
Posts: 1
Joined: Thu 25 Jul, 2002 11:05 pm

Re:Netscape plugins

Postby Fulvio » Fri 26 Jul, 2002 1:11 pm

If you have not posted to the secnews.netscape.com newsgroup, I suggest that you do it. The have three groups, one for Communicator(4.79 and earlier),,6 and 7. There are some excellent programmers in those groups, and it be a good idea to try them
User avatar
Fulvio
Moderator
Moderator
 
Posts: 11827
Joined: Wed 19 Jun, 2002 10:08 am

Check DevEdge

Postby Antony » Sat 27 Jul, 2002 2:27 am

Srividya,

My first suggestion is to check Netscape DevEdge ( http://developer.netscape.com/ ) where lots of reference, white paper and official guides.

srividya wrote: 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.

I don't know exactly, you will have to read the manual from Netscape DevEdge. But my guess is no. You might be also interested in LiveConnect technology which allows you sending Java variables back to JavaScript.

srividya wrote: 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?

Not sure, but my guess is that will be launched when the page loaded with it.

srividya wrote: 3) How do we get the source of all the HTMLs loaded
in case of frame based applications?

Just prevent the page from being framed will do the trick.

srividya wrote: 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?

Yes and no. Yes, if that is an (internal) network environment, where you can customise the browser to be used internally. No, you can't lock visitors' browser through any web technology.

Well, I don't have answers for your other questions.

srividya wrote: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?

Yes and no. The usual JavaScript trick can be used to prevent framing. However, it also depends how it has been framed or externally loaded.
SSL connection is one method, but may not worth it.
User avatar
Antony
diamond member
diamond member
 
Posts: 14343
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia


Return to Firefox, SeaMonkey and Netscape

Who is online

Registered users: Google [Bot]