Jay,

With Angel's help I am in the process of finishing the debugging of  
the javascript for the colorpicker widget.  As Angel says presently it  
is set up within Jmol's WebExport only for changing background color.   
However, as soon as we finish debugging (mostly MSIE issues, which I  
think Angel has figured out), I will make the javascript available on  
my web site and in the Wiki.  The functions are set up so you can pass  
any script command with the color the user picks from the popup  
inserted in the appropriate place. It works a lot like jmolMenu or  
jmolButton. I think we are only a few days away from this.

Jonathan
On Jun 15, 2010, at 10:08 AM, [email protected]  
wrote:

> Message: 3
> Date: Mon, 14 Jun 2010 23:32:47 +0200
> From: Angel Herr?ez <[email protected]>
> Subject: Re: [Jmol-users] Coloring A molecular dynamically....
> To: <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="US-ASCII"
>
> Jay,
>
> There are many wasy you can do that. Several parts:
>
> 1. How to pick the color. Simplest is e.g. to have a <select>  
> control (a drop-down menu) with
> a few colors. The user selects one, the color value is passed to a  
> javascript variable that will
> later be fed to a Jmol script.
> A more sophisticated pick could use Jonathan's new widget, but it is  
> not yet prepared for that,
> only for background color. Easy to adapt, anyway.
>
> 2. How to select the amino acid sequence. Maybe the user types it in  
> a textbox (input
> type=text). You read that using javascript. Then you can probably  
> use JmolScript "select
> WITHIN(sequence, atomExpression)" command with that.
> http://www.stolaf.edu/academics/chemapps/jmol/docs/#atomexpressions
>
> Other ways to set the sequence may be available.
>
> 3. Apply the color. That's trivial.
>
>
> If you need help implementing this, please come back with a specific  
> example page.
>
>
>

                          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






------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to