document.MSketch.getMol javascript error

User 818520b6b8

11-11-2005 11:35:08

Hi,





I'm getting the following error when trying to get the mol from the applet from javascript:





"document.MSketch.getMol is not a function"





This only occurs on Mac Os 10.3.x and Nestcape 7.0 and higher.





Any ideas?

ChemAxon 7c2d26e5cf

14-11-2005 13:38:40

Can you show me your HTML source? Probably, you have tried to get the molecule too early: the applet initalization is not finished yet or the document.MSketch may not be specified.


Please try the following example: http://www.chemaxon.com/marvin/doc/dev/example-sketch3.4.html


If you have got the same error at getting the molecule, it may be a browser bug. If not, the problem may be in your HTML code.


Which Java do you use with Netscape 7? In default, Netscape use Java 1.3.1. If JEP (Java Embedding Plugin) is installed, Netscape can run with Java 1.4.2.

User 818520b6b8

14-11-2005 14:04:22

Your sample doesn't work either.





It must be something related to browser versions or java. I have to investigate more in deep.

User 818520b6b8

14-11-2005 14:46:04

Hi,





I'm running Netcape 7.0 with JVM 1.3.1_16 and Netscape 7.1 with JVM 1.4.2_09, both on Mac OS 10.3.9





And none of then work.





With Netscape 7.0 I still get the error "document.MSketch.getMol is not a function", and Netscape 7.1 simply crashes when I press the export button.





Can you test your HTML with a computer like mine?

User 818520b6b8

14-11-2005 14:47:02

I installed the Embedded Plugin as well.

ChemAxon 7c2d26e5cf

14-11-2005 15:46:56

I have checked Netscape 7.1. It seems to be an unstable browser for running applets.


We do not recommend it for Marvin under Panther (OS X 10.3.x). We recommend Safari because it is a stable browser under this platform. Furthermore, Safari uses Java 1.4.2 in default for running applets.


I can also recommend Firefox that is also a stable browser for applet running. With JEP, Firefox also supports Java 1.4.2.

User 818520b6b8

15-11-2005 07:46:39

Yes,





Safari and Firefox work fine with both our product and your sample.





Now I'll try with Netscape 7.0