On 01/13/2014 01:21 PM, Jaime Prilusky wrote:
> Even if adding refresh to Jmol.script, the alert happens before the model
> gets loaded:
>
> Jmol.script(jmol0,'load data/123.pdb; select all; color blue; refresh;');
> alert(“Back”);
>
If you take the 'alert' out of the 'Jmol.script' command set it is
expected that the 'alert' is processed immediately after the Jmol script
commands are put into the Jmol scripting command cue.
It should be sufficient to add 'refresh;' into your initial version:
Jmol.script(jmol0,'load data/123.pdb; select all; color blue; refresh;
javascript alert(“Back”);’);
Maybe you need to allow javascript commands first, e.g. add it to your
Info settings:
Info = {...
allowjavascript: true
};
Regards,
Rolf
--
Rolf Huehne
Postdoc
Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany
Phone: +49 3641 65 6205
Fax: +49 3641 65 6210
E-Mail: [email protected]
Website: http://www.fli-leibniz.de
Scientific Director: Prof. Dr. K. Lenhard Rudolph
Head of Administration: Dr. Daniele Barthel
Chairman of Board of Trustees: Dennys Klein
VAT No: DE 153 925 464
Register of Associations: No. 230296, Amtsgericht Jena
Tax Number: 162/141/08228
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users