Phil, I don't know.
I'm starting to see ghosts :-)
I've just made a simple page and gone back to Jmol 11.6, just to
confirm this is or not an issue of recent Jmol versions. It is not.
The command that fails when called in a button is OK when entered at
the console.
The paths are correct, the Java error confirms that.
Maybe a Java issue? I have Sun's 1.6.0_20
<html>
<head>
<script src="../Jmol_11.6/Jmol.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
jmolInitialize("../Jmol_11.6")
jmolApplet(400, 'load ../Jmol_11.6/prueba4.pdb')
jmolButton('script ../Jmol_11.6/prueba.spt', 'test script file')
</script>
</body>
</html>
Gives a Java security error when I click on the button:
FileManager opening file:/F:/webs/biomodel/brico/Jmol_11.6/prueba.spt
ERROR en guión: io error reading
file:/F:/webs/biomodel/brico/Jmol_11.6/prueba.spt:
java.security.AccessControlException: access denied
(java.io.FilePermission F:\webs\biomodel\brico\Jmol_11.6\prueba.spt
read)
eval ERROR:
----line 1 command 1:
script >> "../Jmol_11.6/prueba.spt" <<
I then open the console, enter
script ../Jmol_11.6/prueba.spt;
and it works!!!
If all files are in the same folder (page, pdb, spt, jars) it works
fine.
Of course I now about different folder setups, signed applet, running
from a server, etc., but according to the set rules this should work.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users