yes you are right -- 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: Jonathan Gutow [[email protected]] Sent: Sunday, August 15, 2010 4:28 PM To: [email protected] Subject: Re: [Jmol-users] error with jmolColorPickerBox Angel, I think Piero and I straightened this out. Piero, correct me if I'm wrong...:). Angel is correct that the second array must be a JavaScript array, not a string. Angel, Just so you know, I did modify JmolColorPicker.js to accept the same kind of array structure as most Jmol.js command in place of a script. This was specifically for Piero's application. See the "advanced usage" section of the documentation in the current version (1.2). Jonathan On Aug 15, 2010, at 3:31 AM, [email protected]<mailto:[email protected]> wrote: Message: 1 Date: Sat, 14 Aug 2010 11:23:25 +0200 From: Angel Herr?ez <[email protected]<mailto:[email protected]>> Subject: Re: [Jmol-users] error with jmolColorPickerBox To: <[email protected]<mailto:[email protected]>> Message-ID: <[email protected]<mailto:[email protected]>> Content-Type: text/plain; charset="us-ascii" Piero, I think your problem may have originated in some mismatch that existed between instructions and the actual functions in JmolColorPicker.js. var colorScript = [setAtomColor, 'atomColor']; I'm not sure why you have that. it should be a string with a Jmol script, not an array. jmolColorPickerBox(colorScript, '[100,100,100]'); Here you need to remove the quotes. The 2nd parameter must be a javascript array: jmolColorPickerBox(colorScript, [100,100,100]); (this is the piece that was wrong in the doc) If that fails, get the updated version from http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol/src/org/openscience/jmol/app/webexp ort/html/JmolColorPicker.js Dr. Jonathan H. Gutow Chemistry Department [email protected]<mailto:[email protected]> UW-Oshkosh Office: 920-424-1326 800 Algoma Boulevard FAX:920-424-2042 Oshkosh, WI 54901 http://www.uwosh.edu/facstaff/gutow ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

