Applet function is not defined
28/01/2018 12:08
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-directonaltext (Hebrew and Arabic).


The other applet displays text it retrieves from the server, and allowthe user to select lines from this text. This applet also exposemethods to retrieve or reset the user selection, and to do some otherstuff, such as changing the font size, or the data it retrieves fromthe server.


Sometimes, when users use this web application on Mozilla or Firefox onLinux, they get a JavaScript error when the JavaScript code of the pagetries to call methods of the second applet.


Using Firefox's JavaScript debugger, I checked and saw that thedocument.applets array contain two elements, but while in the firstBiDi applet element we can see all the public methods defined in theapplet code, we don't see any of the public methods of the secondapplet in its list of properties in the debugger watch window. This isprobably the reason for the JavaScript error we are getting.


This only happen sometimes on Linux, and never on Windows - not onInternet Explorer, and not on Mozilla for Windows.


Does anyone have any idea why this might happen, and how it can beavoided?
The problem happens on a customer site, who has Sun's JVM 1.4.02installed on the browser's Linux machine.


Any help will be greatly appreciated.


Regards,Splintor

Source is Usenet: comp.lang.java.help
Sign in to add a comment

Answer score: 5
28/01/2018 12:08 - How do you embed your applets into the page? Are you using <applet>,<embed> or <object>?
The deprecated collection document.applets should refer to appletswithing the <applet></applet> tag. Normally all browsers are smartenough to collect all applets inserted in either way, but Lunux Mozillacould have a brains damage ?
But first of all check the name/id you used. Maybe you have assignedthe same name/id to both?

Source is Usenet: comp.lang.java.help
Sign in to add a comment

Answer score: 5
28/01/2018 12:08 -
URL?

Source is Usenet: comp.lang.java.help
Sign in to add a comment

Answer score: 5
28/01/2018 12:08 - I cannot provide a URL, as this happens on the customer internalintranet. We were able to recreate it in our lab, but this is alsointernal to our company, and cannot be shared.


I was thinking that this is a known problem (Mozilla on Linux notrecognizing applet methods), and no URL is needed.


However, we found out that removing the first applet, which is notneeded by this customer who has no bi-directional texts, resolved theproblem.


This is still a mistery, but since it's not happening anymore on thecustomers site, we will accept it as it is.


Regards,Splintor

Source is Usenet: comp.lang.java.help
Sign in to add a comment

eDiscover
Helpforce eDiscover provides technical articles updated each dayHelpforce eDiscover RSS feed contains the latest technical articles in RSS
Click the logo to go back to the main page
Search eDiscover
  
Categories

Click an icon to go to that category

Helpforce eDiscover contains articles about Microsoft Windows Helpforce eDiscover contains articles about Apple products and MacOS Helpforce eDiscover contains articles about Linux and POSIX operating systems Helpforce eDiscover contains articles about Helpforce Helpforce has a large variety of technical information and articles for you to read Helpforce eDiscover contains articles about databases, MYSQL, SQL Server Oracle Helpforce eDiscover contains articles about Java, JVM and the JRE Helpforce eDiscover contains articles about the QNX operating system Helpforce eDiscover contains articles about Oracle Solaris and Open Solaris Helpforce eDiscover contains articles about RISC OS, Acorn and the BBC Micro Helpforce eDiscover contains articles about Amiga and AmigaOS

Type your comment into the box below