Why does Applet to javascript not work in Firefox 18.0.2 and 18.0.1 with the latest JRE (1.7.0_13) installed?
When calling a javascript from applet this JSException is thrown: No such method "methodName" on JavaScript object
I've installed the latest JRE (1.7.0_13) and it works in other browsers, so something has happend in Firefox 18 (I've tested 18.0.1 and 18.0.2 with the same exception). If using JRE 1.7.0_11 (with 1.7.0_13 uninstalled) it works fine.
The call from Applet is like this (using netscape.javascript.JSObject):
JSObject window = JSObject.getWindow(theObject); window.call( "methodName", new Object[] {});
The method "methodName" is available since it works in other browsers but for the information the methods are registered before the Applet is started via this call:
public static native void registerJSNIfunctions(Object theObject) /*-{ parent.methodName= function(s){ theObject.methodName2(s); } ; }-*/;
What has happend?
Được chỉnh sửa bởi cor-el vào
Tất cả các câu trả lời (1)
A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.