Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

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 имеют эту проблему
  • 2 просмотра
  • Последний ответ от 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.