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