I realized that the file is correctly read with  jmolScript("load ?  ")  wherever it is, whereas it has to be in the same directory as the applet if the command jmolScriptWait("load ?  ") . Why ?
How can I solve it ?
What I am tiring to do is an online visualizer. So I cannot set a set defaultDirectory as the user browses the file he likes.
 
Thanks
 
-- 
Pieremanuele Canepa
Room 104
Functional Material Group
School of Physical Sciences, Ingram Building,
University of Kent, Canterbury, Kent,
CT2 7NH
United Kingdom

e-mail: pc229@kent.ac.uk
mobile: +44 (0) 7772-9756456
-----------------------------------------------------------
 

From: P.Canepa [pc229@kent.ac.uk]
Sent: Thursday, April 15, 2010 3:56 PM
To: jmol-users@lists.sourceforge.net
Subject: Re: [Jmol-users] (no subject)

It's strange because all work if I use the normal  jmolScript as below
function onClickLoadStruc() {
  jmolScript("load ?; script scripts/name.spt;  background white") 
  removeAllModels()
  loadModels()

}
 
This just happens when I employ  jmolScriptWait(....)
 
 
-- 
Pieremanuele Canepa
Room 104
Functional Material Group
School of Physical Sciences, Ingram Building,
University of Kent, Canterbury, Kent,
CT2 7NH
United Kingdom

e-mail: pc229@kent.ac.uk
mobile: +44 (0) 7772-9756456
-----------------------------------------------------------
 

From: Paul Pillot [paul.pillot@ac-orleans-tours.fr]
Sent: Thursday, April 15, 2010 3:54 PM
To: jmol-users@lists.sourceforge.net
Subject: Re: [Jmol-users] (no subject)

make sure the applet and the files are located in the same directory.
Paul
Le 15 avr. 2010 à 16:34, P.Canepa a écrit :

Te error I see on the jmol deck is java.Security.AccessControlException: access.denied (java.io.FilePermission ...
this happens per each file? How comes ?
 
all the best, Piero
 
--