That's right, too. In this case you are putting a script into the queue and
then immediately and independently firing the alert message. Your initial
way is correct; just add a REFRESH command prior to that if you want the
model to be displayed during the alert.


On Mon, Jan 13, 2014 at 6:21 AM, Jaime Prilusky <
jaime.prilu...@weizmann.ac.il> 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”);
>
> Jaim
>
> On Jan 13, 2014, at 2:03 PM, Angel Herráez <angel.herr...@uah.es> wrote:
>
> > I agree that the use of refresh is often needed; that's my
> > experience, in many occasions it's been key.
> >
> > However, the doc says otherwise:
> > http://chemapps.stolaf.edu/jmol/docs/#refresh
> >
> > "(Unnecessary, and thus deprecated.)"
> >
> > I would remove that phrase, Bob :)
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > 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
> > Jmol-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
> ------------------------------------------------------------------------------
> 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
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
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
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to