That's it: applet calls a Javascript which will be executed in the browser.
I did it a long time ago to use (chat, ...) the right part of the
'Bounce It' game ( here:
http://multijoo.no-ip.org ).
The feature is usually called 'LiveConnect' (ie. Applet <=> Javascript
interaction). It may help for google search ;-)
Things needed are already present in pulpcore : it is -among other- used
to show the pulpcore applet when it's loaded if I remember well.
Below, a sample line of code to call a javascript function present in
the webpage:
((AppletAppContext)(AppletPlatform.getInstance().getThisAppContext())).callJavaScript("myfunction",
myOptionalParameterObjectLikeAString);
Best regards,
Nouk²
Dan Watling a écrit :