I'm trying to call a java function via applet using Angular.js with no success. I'm not even getting the Applet loaded (java console is not starting when I load the app). I've used the approaches below without success. Any ideas?
Binding applet parameters with angularJS
PS: it's in Chrome and with the NPAPI enabled.
PS2: I get it with Knockout with the code below (we are migrating to Angular)
var res = document.getElementById("cdigApplet").signFile(file.id().toString(), "" , api.token);
signFile() is a method inside the Java Applet.
Html:
<applet id="cdigApplet" code="cdig.CDigApplet" archive="cdig-applet-1.0.jar, cdig-0.3.jar, json-20141113.jar" width="1" height="1" classloader_cache="false">
<param name="persistState" value="false" />
<param name="cache_option" value="no"/>
Thanks.
See Question&Answers more detail:os