Pulpcore And Javascript To Java Applet Communication
I have a problem using Pulpcore Java framework. I tried to call Java function from JavaScript on the page with applet. The applet is correctly embedded on the page (pulpcore genera
Solution 1:
This answer was posted by f1ames as an answer inside the question:
This code works:
$(document).ready(function() {
var applet = $("#pulpcore_object")[0];
var scene = applet.getCurrentScene();
scene.method();
});
So, we get the applet and then the main scene class and now we can call any public method from the scene class.
Post a Comment for "Pulpcore And Javascript To Java Applet Communication"