Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

load ActiveX object in Applet

 
Dan Murphy
Ranch Hand
Posts: 126
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a web application that processes events and audio received from a specialised microphone. The audio is processed by a Java applet that runs in the web page, but other events (microphone connected, microphone disconnected, microphone button pressed) are handled by an ActiveX object.

The ActiveX object traps these events and calls JavaScript code to handle them

Of course a problem with this approach is that it's completely IE dependent. I would prefer to load the ActiveX object within the applet, trap the events there and handle the events either within the applet, or JavaScript code called from the applet. This should then enable me to run the app in any browser that supports applets.

I'm not entirely sure how to go about implementing the solution I've proposed above - I guess I'll need some sort of Java-ActiveX bridge? If anyone can suggest how I might implement this, or propose an alternative solution, I'd be very grateful.

Thanks in advance,
Dan
 
John Kimball
Ranch Hand
Posts: 96
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd still be relying on a Windows (maybe WINE) client.

Are you sure it's even worth the trouble?

 
Dan Murphy
Ranch Hand
Posts: 126
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Kimball wrote:You'd still be relying on a Windows (maybe WINE) client.

That's fine, my objective is to be browser-independent, not OS-independent
 
John Kimball
Ranch Hand
Posts: 96
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd start here.

http://danadler.com/jacob/

I'm not familiar terribly familiar with applets, but if JNI is sandbox-restricted you'll also need to sign the applet.

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See http://faq.javaranch.com/java/JavaIntermediateFaq#callingCom for some alternatives to Jacob.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic