I have read many times in these and other forums that you should not use eval () in JS. I am writing exits from the java applet to the browser using the JSObject eval method in the netscape.javascript import. * ;, it works fine in FF, but in IE I get Unspecified errors if I lighten the DOM by deleting the menu, etc. this problem will go away then, I tried everything, but could not solve the problem.
Read in these forums that if absolutely necessary to use eval, then do it in a try catch block in IE to avoid an undefined error, now that Java calls it, it cannot be placed in a try and catch block for JS (in java it is already in the catch catch block).
The question is, is the Java JSObject eval implementation similar to the browser implementation of the eval method? I know that a browser must have a JSObject implementation for working with an applet.
Am I on the right theory? if so, any work around if possible?
thank
source
share