Dear Bob, All,

I try to combine my old page you see once about CRYSTAL09,

I am trying to introduce new function for instance the use of flot as you did 
in the example 
http://chemapps.stolaf.edu/jmol/docs/examples-11/jmol-flot-energy.htm

I think I am doing some mistake somewhere.

In fact if use this string to load up the commands are executed  up to message 
DONE;. The result my flot graphs doesn't work.
jmolApplet(["520","440"], " script scripts/reset.spt;  set messageCallback 
'myMessageCallback'; message DONE; set loadStructCallback 'plotEnergies';");

If now I open the console and I reenter the string script scripts/reset.spt;  
set messageCallback 'myMessageCallback'; message DONE; set loadStructCallback 
'plotEnergies' now I can see the plotwith flot.

Do you have any clue? Should I enter a timeout

P.S. I am using the set messageCallback 'myMessageCallback'; message DONE to 
load up all my models when I load a new structure.

 function myMessageCallback(a,m) {
    m = "" + m
    // important to do this to change from Java string to JavaScript string
    if (m.indexOf("DONE") == 0) loadModels()
  }

where loadModels() is the function which extracts the models and so on ..


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
-----------------------------------------------------------
------------------------------------------------------------------------------
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