Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX's in Netscape(Thru plugin maybe?)

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
0
0
US
Is there any way possible at all, maybe even thru a third party plugin to get an ActiveX to run on Netscape?, anything?! <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
The point of this post was so that we wouldnt have to learn Java, although this is an old post, the thing is we dont want to rewrite our activeX controls, which are more than just visuals, they're applications, into trying to put it into java. but thanks for replying. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)
 
There is a plugin called esker thatwill let you use activex controls, though not very well. I have just started researching this topic and am hoping to make my own plugin that will function as an activex container. If you do find anything of use, could you please let me know also?

Thanks

bjansens@dbi-tech.com
 
i copied and pasted this :

&quot;
On the Web
To get a quick feel for ActiveX controls while staying in Navigator, download the ActiveX plug-in from Ncompass Labs. The Windows plug-in, available at allows Navigator to use ActiveX controls.
&quot;

from chapter 15 of the plugin book found at
 
hmm unfortunatly that URL doesnt work at all, I found this information on the site tho

[tt]

Notice to Plug-In Customers


On December 13, 1999 NCompass Labs made the decision to cease further development on the ScriptActive and DocActive plug-ins. The decision was based on a declining market for these products.

We are no longer accepting orders for either plug-in. Only the licensing agreements held by our current OEM plug-in customers will be honored.

For these customers, we will provide telephone support and those product fixes required to run the plug-ins under Netscape Navigator (through version 4.7) and Microsoft Office (through Office 97). We will not support Netscape Navigator beyond version 4.7 or Microsoft Office beyond Office 97.

We hope this decision will not seriously inconvenience our customers. If you have questions or comments about our plug-ins, please contact us by e-mail at pluginfo@ncompasslabs.com or phone 1-877-606-0950.

Uninstalling the NCompass Plug-Ins

©2000 NCompass Labs Inc. Legal Notice Privacy Policy

[/tt]

Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)

 
i have found 2 free frameworks for building Netscape Plugins using Delphi (note to people unfamiliar with delphi: you can just drop an activeX control onto a delphi form and compile it into an exe or dll) :

<
and

<
i have been playing with the first one for about two weeks and am unfamiliar with the second one. The first one allows you to create a netscape plugin from a delphi form by creating a dll project and then descending a form from a TPluginForm and then calling a register routine - it then creates a DLL which is a plugin. Putting that dll in netscape's plugin directory and then using an embed tag to view a MIME type which is mentioned in a resource file that is linked into the DLL (edit the resource file and then compile it with brcc32 and then link it into your source with {$R Plugin.rc}) - will display the form in your web page, like an ocx. I was planning to drop my ocx onto the form and then add a layer of wrapper routines to the form and then export those routines in the DLL - those wrapper functions would then invoke methods on the ocx sitting on the form. Then, according to netscape's documentation, in order to use javascript on the plugin i would create a java class which uses JNI (java native invocation) to load the dll; then i would run netscape's special javah utility (not Sun's) on the java class to create a C file which includes a &quot;use_blahblah&quot; routine (where blahblah is the name of your java class) - that routine would tell the java runtime environment used by netscape that the java class is &quot;associated&quot; with the plugin. Then when you do javascript commands on it, netscape funnels those commands to the java class which then calls the native methods, which in my case would be the routines exported in the dll. You have to call the use_blahblah routine in the framework's NP_GetJavaClass routine, which means you would have to compile the C file using a c compiler that outputs obj files in intel's OMF format (like borland compilers and unlike microsoft compilers) and then link the file into your DLL using the $L directive (because delphi can only link obj files in OMF format). I wasn't sure if this would work but i decided to give it a try. Well, the JNI works, because if i export a routine in the dll that just does a showmessage, and then create my java class which loads the dll and then executes the native routine, and then run it from the command line with &quot;java blahblah&quot;, i see a showmessage. The linking appears to work, because i compiled the C file and linked it into the dll ok and called it ok in the getjavaclass routine. But when invoking the showmessage native routine using a javascript call it AVs and kicks me out of netscape, so i figured there was still something missing somewhere, or that i was doing something wrong. Then i noticed AVs occurring even if i commented out all the extra stuff i had added for the javascript communication; and i went back to the demo which came with the first framework above, and verified that it appeared to work ok as a plugin after i compiled it with delphi 4 and copied the dll to netscapes plugin directory and then invoked it in a web page with the embed tag. (this was the first thing i tried before doing any of the above, of course, two weeks ago, but i did it again after all this as a sanity check). Then i clicked the reload button and BOOM - i got an AV on the demo plugin. (doh ! ). This makes me think that there is a bug in the framework itself, though i am hesitant to say things like that because 99 % of the time it turns out that the problem is something you did, not the framework author. Well, anyways... its free and it includes the source, so you can't complain too much. Maybe i will examine the 2nd framework now...

i was going to post a detailed list of exactly what to do when using the first framework, as a reply to my own earlier post about writing netscape plugins in delphi (in borland.public.delphi.activex.controls.writing), so that other people wouldn't have to find all the idiosyncracies themselves (there are many, even with getting netscape's javah to work right, at least on my system...) and so that people could follow the steps without knowing java or delphi - but I would only do that once i was successful, which is not yet... but i decided to go ahead and post this if its any help, and also if anyone out there can provide suggestions with what i may be missing or forgetting to do.

other general-purpose and helpful links i have found (in no particular order) about creating plug-ins (not in delphi, however):

<<< <<<< <<
 
Hello all,
Here are a couple of things I've found. The first link is to a company that makes a product called Asgard PluginWizard, which creates a plugin for your activex control. It will even create the source code, and integrates live-connect so you can talk to your activex component via javascript. I'm using it, and it's working just fine.


This second one is for EskerPlus, which is another plugin wrapper. It is generic, not made for your activex control, but again, it works. The only problem I found was that it didn't shut down my activex control properly, and it was crashing Netscape if I did things the right way.


Hope this helps!
 
How can I make the Active X control Page Object compatible
with the Netscape which is used for Remote Scripting.
 
Yes it will be soon,
I have Developed a Netscape Plugin that will allow any AciveX to run inside Netscape 3.0 and Up, and Not only run them but you can Set there properties just like you would from IE..
it will be out soon...

My web Site is under construction right now ..

just check in a week or so and you will be able to download it...

Jay.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top