Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

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 resposta
  • 15 têm este problema
  • 1 visualização
  • Última resposta por 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?

Modificado por cor-el a

Todas as respostas (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.