aspose file tools*
The moose likes Java in General and the fly likes ActiveX like JARs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "ActiveX like JARs" Watch "ActiveX like JARs" New topic
Author

ActiveX like JARs

Srinivas Kothuri
Greenhorn

Joined: Feb 08, 2010
Posts: 16
Hi,

I worked in developing ActiveX components using c# to support some extra functionality at script level for Internet Explorer.
It was an ActiveX DLL.
Is the same possible using Java, like creating a JAR/library by which I can expose the Java objects as JavaScript entities?
To what extent Applets are helpful in this?

Thank you
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42600
    
  65
You could embed an invisible applet on the page (maybe an applet that is 1 by 1 pixels large); then JavaScript can call public methods in that applet through a facility called "LiveConnect". See the AppletsFaq for some more detail on that.


Ping & DNS - my free Android networking tools app
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39804
    
  28
Too difficult a question for "beginning". Moving thread.
 
Don't get me started about those stupid light bulbs.
 
subject: ActiveX like JARs