I am working with an existing Java codebase, which although it can be called from an HTML page using the <APPLET> tag, does not actually subclass the Applet class. The same banks are also used in a context without a browser, so they did not subclass Applet.
Now I need to pass some values ββfrom Java back to the Javascript of the calling page. This can usually be done using JSObject, but as far as I can, I need to use JSObject.getWindow, which works only for subclasses of Applet.
Whether there is a:
- How to use JSObject from something that is not a subclass of Applet?
- is there any other mechanism for linking to the javascript of the calling page?
source
share