搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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?

  • 1 个回答
  • 15 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

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?

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): <pre><nowiki>JSObject window = JSObject.getWindow(theObject); window.call( "methodName", new Object[] {});</nowiki></pre> 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: <pre><nowiki>public static native void registerJSNIfunctions(Object theObject) /*-{ parent.methodName= function(s){ theObject.methodName2(s); } ; }-*/;</nowiki></pre> What has happend?

由cor-el于修改

所有回复 (1)

more options

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.