I have an applet running within GWT, I am able to access JS functions from the init() of the applet. But i am unable to use JSObject.call() or JSObject.eval outside the init().
Asked
Active
Viewed 1,125 times
0
-
In a nutshell, the GWT page makes use of this applet to communicate with devices. Once the applet loads as a part of the init() it does a JSObject.call() to notify the GWT code that it has loaded. The GWT code then calls an method on the applet(processSomething()) for some processing, after this processing completes, the applet needs to notify the GWT code again.. this is where I have a problem.. I get a unknown method error while invoking JSObject.call or JSObect.eval from within this processSomething() method.. – Karthik Jayakumar Jun 15 '12 at 18:48
-
netscape.javascript.JSException: Unspecified error invoking method or accessing property "processSomething" – Karthik Jayakumar Jun 15 '12 at 19:01
-
For better help sooner, post an [SSCCE](http://sscce.org/). – Andrew Thompson Jun 16 '12 at 07:40
1 Answers
0
Maybe you have to use AccessController.doPrivileged()
Please, read When should AccessController.doPrivileged() be used?

Community
- 1
- 1

user1504906
- 41
- 1
- 2