Closed Bug 275641 Opened 20 years ago Closed 12 years ago

javascript error "not a function" when calling Java applet's public method

Categories

(Firefox :: General, defect)

1.0 Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: service, Unassigned)

References

()

Details

Attachments

(1 file)

A java applet "VerveJEdit" has a public function "getHTMLDocument()" that is
meant to be called from javascript so that content can be passed from the applet
into an HTML form element.

This works in IE and older versions of mozilla, netscape, and safari on windows,
linux, and mac.

However, with firefox 1.0, it does not work.  Under Windows, the java applet
loads but the javascript function does not work.  The javascript console says:
"Error: document.VerveJEditApplet.getHTMLDocument is not a function"

Under Mac, the java applet gets an error about not being able to load some class
and the applet does not load at all.

To reproduce, visit:

http://www.codeverve.com/products/verveJEdit/tryit.cfm  and try using the two
buttons on the page to transfer content to/from the applet.
Is this a problem with Mozilla 1.7.x?
Assignee: bugs → firefox
Component: JavaScript Console → General
QA Contact: firefox.js-console → firefox.general
Summary: javascript error "not a function" → javascript error "not a function" when calling Java applet's public method
Doesn't work with me, using firefox-1.0 on linux (gentoo)...
I see this same bug running Firefox 1.0 on
both Win2K + SP4 and WinXP + SP2. In both
cases using JRE 1.4.2_06 + its default
installed plugin. I see the bug in the
example provided in description as well
as when trying with my own code.
May be related to bug 254285.
This same bug appears on Mac OSX using Firefox 1.0.1, even when using standard
java.lang calls:

var javaVersion = java.lang.System.getProperty("java.version");

produces an error on the java console:

Error: java is not defined.

HOWEVER, the error message is not produced if you disable and reenable java
without restarting.  Even still, the java call is not executed properly.
Attached file test case for bug
Version 1.0.3 ( Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7)
Gecko/20050424 Firefox/1.0.3 ) even the calling of public applet methods in the
same window is NOT working if you are not reloaad the document with applet
first.

Attached is an example.
Build the sources, then copy test.jar to html dir and open applet.html, then
click on "open" link - you will get JavaScript error. Reload window, click on
that link - everything works fine.

Open frameset.html in browser, then click on "Open" link in right frame -
Javascript error, refresh LEFT frame with applet, click on the link in RIGHT
frame - everything works fine.
Assignee: bross2 → nobody
This bug is part of a query for Firefox bugs that have Status set to NEW, but have version field set to 2.0 or older and have not changed in over 800 days.

http://tiny.cc/forgottennewbugs

If you still see this bug, or if it is still valid with Firefox 3.6.10 or a firefox 4 nightly build, please update the version field and steps to reproduce.
I presume this is because liveconnect is dead. Resolving as wontfix.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: