Mac-specific Java-Javascript communication error
We just recently refactored some code in an applet that was written in Java 1.4. I confirmed that the Java 1.6 version of the applet runs fine within X11 on my Mac. However, when I try to call the applet within a Web page with the following invocation:
<applet
code="com.ace.lewissketch.LewisSketch.class"
name="responseApplet"
codebase="/nosession/lewis/"
archive="LewisSketch.jar"
width="450"
height="320" >
</applet>
<script type="text/javascript">
document.responseApplet.setMol(getMol());
</script>
on my Mac, I get an error, "Result of expression 'document.responseApplet.setMol' [undefined] is not a function." This happens on both Safari 5 and Firefox 3. However, in Firefox on Linux and MSIE on a PC, the applet runs just fine. The Java 1.4 version of the applet also runs just fine on my Mac. So the problem is Mac-specific and specific to the new version of the applet. Any ideas how to solve or work around this problem?
MacBook Pro, Mac OS X (10.5.8)