jsobect

Since today, I cannot access netscape.javascript.* classes within Eclipse

Since today, my Eclipse fails to load JSObject. This code was previously working OK. Any ideas how to fix it? I do have simple netscape.jar in the classpath. Here is the code that now fails to work: import netscape.javascript.*; ... try { doc = (JSObject) JSObject.getWindow(app); //.getMember("document"); } catch(...

JSObject: Download it or available in JRE 1.6?

Hello all, This is a question from a JAVA noob. I have eclipse open (JRE 1.6), I have copied this code into an eclipse class: http://bit.ly/WLntN The line in question is this: import netscape.javascript.JSObject; Eclipse is complaining that the import can not be resolved. I read that in the docs that the Java Plug-In comes as stand...

Access is Denied Exception when calling JavaScript function from Java in IE

I am getting Access Denied exception when I am calling a Java Script Function from Java Applet only in IE. ( modified my original question with updated information.) Here is my HTML code <script type="text/javascript"> function uploadComplete() { alert("in Upload Complete"); ju.doneUpload(true); } </script> ju is ...

2 ways to get page url in java applets, what's the difference and/or benefits of each?

Hi experts,,, the two ways that I know to get the page url are: 1.through the applet class: Applet.getDocumentBase() 2.through the netscape javascript library: JSObject.getWindow(this).eval("location.href") First, what are the differences between those two methods and advantages of each, Secondly, can users trick the url of those met...