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 
<http://chemapps.stolaf.edu/jmol/docs/?ver=12.0#set_defaultdirectory> 
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: [email protected]
mobile: +44 (0) 7772-9756456
-----------------------------------------------------------

________________________________
From: P.Canepa [[email protected]]
Sent: Thursday, April 15, 2010 3:56 PM
To: [email protected]
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: [email protected]
mobile: +44 (0) 7772-9756456
-----------------------------------------------------------

________________________________
From: Paul Pillot [[email protected]]
Sent: Thursday, April 15, 2010 3:54 PM
To: [email protected]
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

--
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to