Am I correct in thinking that the Jmol.js JmolButton doesn't include the alt="" 
feature to toggle btwn two scripts? (Pretty sure that this could be done w/ 
Chime, so many yrs ago.) Yes, it can be done in javascript (and I've found it 
useful to toggle a button thru four states on occasion) but can it be done with 
the Jmol.js library?

--Phil Barak


----- Original Message -----
From: Bob Hanson <[EMAIL PROTECTED]>
Date: Tuesday, January 9, 2007 1:09 am
Subject: Re: [Jmol-developers] adding functions to Jmol.js
To: [email protected]


> please try this.
> 
> 1) no new clones -- just regular checkboxes
> 2) one new user function, inserted after the set of boxes has been 
> defined and written to the page
> 
>   jmolSetCheckboxGroup(masterIdOrNumber,itemIdOrNumber,itemIdOrNumber...)
> 
> 3) any number of master/group relationships
> 4) iterative -- any number of levels
> 
> http://www.stolaf.edu/academics/chemapps/jmol/docs/examples-11/check.htm
> 
> using
> 
> http://www.stolaf.edu/academics/chemapps/jmol/docs/examples-11/Jmol.js
> 
> Bob
> 
> Angel Herraez wrote:
> 
> > Do any of you mind or see any trouble if I add David Leader's 
> > functions for Master-Slave checkboxes into Jmol.js?
> >
> > The code would be what I am attaching.
> >
> > Targets would be
> > /trunk/Jmol/appletweb/Jmol.js
> > and
> > /branches/v11_0/Jmol/appletweb/Jmol.js
> >
> >
> > There is also the question of removing the warning from 
> jmolInitialize 
> > when an absolute (http:// ) reference is used (modification also 
> > contained in the attached code).
> >
> >
> >
> > On 4 Jan 2007 at 22:26, David Leader wrote:
> > 1. Back in the summer I produced my own modifications of the 
> > jmolCheckbox() function, as indicated by the comments in my modified
> > version of Jmol.js for 10.2:
> >
> >  The jmolCheckbox() function has been cloned and modified to give:
> >  jmolCheckboxMaster() and jmolCheckboxSlave(), which have their own
> >  counters and generate ids of the type jmolChkboxMaster0 and
> >  jmolChkboxSlave0, ..1, ...2. These generate checkboxes with one 
> > additional
> >  function for onClick(). In the case of the 'master' the updateSlaves()
> >  funtion sets all the 'slave' checkboxes to the same state as the master
> >  after the master has been clicked. In the case of the 'slaves' the
> >  notifyMaster() function determines whether the change of state of 
> > the slave
> >  has resulted in a situation in which all slaves are now checked 
> > (when the
> >  master must be likewise updated) or a situation in which not all 
> > slaves are
> >  checked (in which case the master should be unchecked).
> >
> > It is in use on my web app at 
> _http://doolittle.ibls.gla.ac.uk/motif_ 
> >   and
> > notified the developers group about it (unfortunately I have not  the
> > email to hand) and was told that it would be incorporated in the  next
> > release. It is not in 11.0.RC3. I think it would be a useful  addition,
> > but if it is not going to be included, I need to know so  that I can 
> 
> > mount
> > a branch on my own website and reference it in  publications.
> > -----------
> >  
> >
> >------------------------------------------------------------------------
> >
> >The following section of this message contains a file attachment
> >prepared for transmission using the Internet MIME message format.
> >If you are using Pegasus Mail, or any other MIME-compliant system,
> >you should be able to save it or view it from within your mailer.
> >If you cannot, please ask your system administrator for assistance.
> >
> >   ---- File information -----------
> >     File:  expanded_Jmol.js
> >     Date:  8 Jan 2007, 2:44
> >     Size:  6976 bytes.
> >     Type:  Unknown
> >
> >  
> >
> >------------------------------------------------------------------------
> >
> >-------------------------------------------------------------------------
> >Take Surveys. Earn Cash. Influence the Future of IT
> >Join SourceForge.net's Techsay panel and you'll get the chance to 
> share your
> >opinions on IT & business topics through brief surveys - and earn cash
> >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Jmol-developers mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/jmol-developers
> >  
> >
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to 
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Jmol-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-developers

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to