> however, I soon encounter problems when
> trying to embed the applet to view the molecule
> file in a web page.  I am using the
> following generic code:
>
> <applet name="jmol" code="JmolApplet" archive="JmolApplet.jar"
>         codebase="../jmol"
>         width="200" height="200" mayscript="true">
>   <param name="load" value="molecule.mol"/>
> </applet>
>
> at which point I receive the error messages (from the browser):
> "Applet Jmol not initiated"
> "Loading Java Applet Failed"
>
> Any assistance in identifying the cause of and/or fixing the problem would
> be
> greatly appreciated.  Thanks for your time.

There are a number of security problems related to directory access
against a local file system.

These problems go away if you access your files via a web server.

To run locally without a web server (using file:///.......) you *must* put
*all* of your files in the same directory. This includes the
JmolApplet.jar file. So your [applet] tag must say
  codebase="."


Miguel



-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_idh83&alloc_id149&op=click
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to