yes u pass it to Jmol  with strApp+="JmolColorPickerBox(" + scriptColor + 
",[255,255,255]); \n"

Sorry it's been replaced with an x in the original text. 
--
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: [email protected]
mobile: +44 (0) 7772-9756456
-----------------------------------------------------------
________________________________________
From: Angel Herráez [[email protected]]
Sent: Tuesday, July 13, 2010 2:08 PM
To: [email protected]
Subject: Re: [Jmol-users] problem setting element colors with   
JmolColorPickerBox

Piero, I don't get the whole picture of your problem, but you have

<select name="colourbyElementList" id="colourbyElementList" size="1"
class="" onchange="elementSelected(value)">

 var scriptColor =  "";
   function elementSelected(element){
    scriptColor = "' color " + element + " $COLOR$'";
    return scriptColor;
   }

that is javascript, right? So you need to pass Jmol the result:

   function elementSelected(element){
    scriptColor = "' color " + element + " $COLOR$'";
    jmolScript(scriptColor);
   }

I'm not sure about how the $COLOR$ piece is interpreted.



------------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to