Hi all,
We have a web application, and one of its pages contain two applets.
The first one has no UI, and expose methods to manipulate bi-directonal
text (Hebrew and Arabic).
The other applet displays text it retrieves from the server, and allow
the user to select lines from this text. This applet also expose
methods to retrieve or reset the user selection, and to do some other
stuff, such as changing the font size, or the data it retrieves from
the server.
Sometimes, when users use this web application on Mozilla or Firefox on
Linux, they get a JavaScript error when the JavaScript code of the page
tries to call methods of the second applet.
Using Firefox's JavaScript debugger, I checked and saw that the
document.applets array contain two elements, but while in the first
BiDi applet element we can see all the public methods defined in the
applet code, we don't see any of the public methods of the second
applet in its list of properties in the debugger watch window. This is
probably the reason for the JavaScript error we are getting.
This only happen sometimes on Linux, and never on Windows - not on
Internet Explorer, and not on Mozilla for Windows.
Does anyone have any idea why this might happen, and how it can be
avoided?
The problem happens on a customer site, who has Sun's JVM 1.4.02
installed on the browser's Linux machine.
Any help will be greatly appreciated.
Regards,
Splintor
Andrew Thompson - 15 Jun 2005 14:11 GMT
> We have a web application, and one of its pages ...
URL?

Signature
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
splintor@gmail.com - 16 Jun 2005 07:20 GMT
I cannot provide a URL, as this happens on the customer internal
intranet. We were able to recreate it in our lab, but this is also
internal to our company, and cannot be shared.
I was thinking that this is a known problem (Mozilla on Linux not
recognizing applet methods), and no URL is needed.
However, we found out that removing the first applet, which is not
needed by this customer who has no bi-directional texts, resolved the
problem.
This is still a mistery, but since it's not happening anymore on the
customers site, we will accept it as it is.
Regards,
Splintor
VK - 17 Jun 2005 15:57 GMT
How do you embed your applets into the page? Are you using <applet>,
<embed> or <object>?
The deprecated collection document.applets should refer to applets
withing the <applet></applet> tag. Normally all browsers are smart
enough to collect all applets inserted in either way, but Lunux Mozilla
could have a brains damage ?
But first of all check the name/id you used. Maybe you have assigned
the same name/id to both?