ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

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

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)

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.