Thanks a lot Bob.
If you do like this you won't load the model in the select under Geometry.
I did like this jmolApplet(["520","440"], " load output/hematite.out; set 
messageCallback 'myMessageCallback'; message DONE;   set loadStructCallback 
'plotEnergies';script scripts/reset.spt; "); and it works .

Thanks, Piero
--
Please consider the environment before printing this e-mail.

Pieremanuele Canepa
Room 104
Functional Material Group
School of Physical Sciences, Ingram Building,
University of Kent, Canterbury, Kent,
CT2 7NH
United Kingdom

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

________________________________
From: Robert Hanson [hans...@stolaf.edu]
Sent: Wednesday, July 07, 2010 6:34 PM
To: jmol-developers@lists.sourceforge.net
Subject: Re: [Jmol-developers] issue with flot

It was just an ordering of Jmol commands in the jmolApplet script parameter.


2010/7/7 Angel Herráez <angel.herr...@uah.es<mailto:angel.herr...@uah.es>>
Piero,

Mostly, alerts serve to stop the flow of javascript and whatever
message you put in them just tells you that the flow is there.

I'm afraid I cannot offer any clear hitn as to what is happening
precisely in your case.

On the other hand, if your only purpose for defining a
messagecallback is what you have shown, I would try something simpler
like

jmolApplet(["520","440"], 'script "scripts/reset.spt";
set loadStructCallback "plotEnergies"; javascript "loadModels()"; ');

(but I'm just guessing)



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first<http://sprint.com/first> -- 
http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net<mailto:Jmol-developers@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/jmol-developers



--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to