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
expanded_Jmol.js
Description: Binary data
------------------------------------------------------------------------- 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
