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] wrote: > Message: 1 > Date: Sat, 14 Aug 2010 11:23:25 +0200 > From: Angel Herr?ez <[email protected]> > Subject: Re: [Jmol-users] error with jmolColorPickerBox > To: <[email protected]> > Message-ID: <[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] 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

