Thanks a lot for this very quick help! Moving to JSmol will be beneficial for the future anyway...

Stefan

On 05/16/2013 04:42 PM, Robert Hanson wrote:
Well, well. That was a major bug in the JavaScript for checkbox groups that goes way way back.

see http://chemapps.stolaf.edu/jmol/jsmol.zip

Stefan, a test page showing how to move that page to JSmol is at

http://chemapps.stolaf.edu/jmol/jsmol/testcb.htm

No plan to fix this for Jmol.js

I plan on releasing new versions of Jmol and JSmol next week, and this will be in that, but for now this jsmol.zip file should suffice.

Angel, I added an option there for

Jmol.setCheckboxGroup that allows the second parameter to be an array of names -- let's make that the documented method.

Jmol.setCheckboxGroup = function(chkMaster, chkBoxes)

for example:

Jmol.setCheckboxGroup("chain_A",["Homo_sapiens_active site2","Homo_sapiens_active site"])


Bob



On Thu, May 16, 2013 at 7:04 AM, Robert Hanson <[email protected] <mailto:[email protected]>> wrote:

    Stephan,

    It does look like a bug to me. Those check  boxes should
    automatically fire. I'll see what is going on.

    Can I get you to move up to
    http://wiki.jmol.org/index.php/Jmol_JavaScript_Object ?
    There's no plan to do any support for Jmol.js anymore. I'll recast
    your page for that and get back to you.



    On Thu, May 16, 2013 at 6:26 AM, Stefan Richter
    <[email protected] <mailto:[email protected]>> wrote:

        Hi Angel,

        thanks for you comment. I've uploaded a testpage on:
        http://jelos.de/jmolcheckbox/index.html

        Stefan

        On 05/16/2013 12:32 PM, Angel Herráez wrote:
        > Hi Stefan
        >
        > I don't remember the logic behind jmoSetCheckboxGroup(), but
        it is
        > likely that it only adjusts the checkboxes state, which
        action the
        > browser's javascript does not fire unless done by the user.
        (I've
        > seen this behaviour sometimes in other context)
        > You may have to take care of launching the scripts yourself.
        Nasty, I
        > agree. Maybe the function in Jmol.js can be fixed to do it.
        A simple
        > page with a test case would be helpful to reserach this and
        try to
        > find a cure.
        >
        >
        >
        >
        >
        >
        >
        >
        
------------------------------------------------------------------------------
        > AlienVault Unified Security Management (USM) platform
        delivers complete
        > security visibility with the essential security
        capabilities. Easily and
        > efficiently configure, manage, and operate all of your
        security controls
        > from a single console and one unified framework. Download a
        free trial.
        > http://p.sf.net/sfu/alienvault_d2d
        > _______________________________________________
        > Jmol-users mailing list
        > [email protected]
        <mailto:[email protected]>
        > https://lists.sourceforge.net/lists/listinfo/jmol-users


        --
        Dr. Stefan Richter
        Software and IT Specialist
        Molecular and Cellular Modeling Group (MCM)
        HITS gGmbH
        Schloss-Wolfsbrunnenweg 35
        69118 Heidelberg
        Germany

        phone: +49 - 6221 - 533 279 <tel:%2B49%20-%206221%20-%20533%20279>
        fax: +49 6221 533298 <tel:%2B49%206221%20533298>
        email: [email protected] <mailto:[email protected]>
        http://www.h-its.org
        http://www.eml-research.de
        _________________________________________________
        Amtsgericht Mannheim / HRB 337446
        Managing Directors:
        Dr. h. c. Dr.-Ing. E. h. Klaus Tschira
        Prof. Dr.-Ing. Andreas Reuter




        
------------------------------------------------------------------------------
        AlienVault Unified Security Management (USM) platform delivers
        complete
        security visibility with the essential security capabilities.
        Easily and
        efficiently configure, manage, and operate all of your
        security controls
        from a single console and one unified framework. Download a
        free trial.
        http://p.sf.net/sfu/alienvault_d2d
        _______________________________________________
        Jmol-users mailing list
        [email protected]
        <mailto:[email protected]>
        https://lists.sourceforge.net/lists/listinfo/jmol-users




-- Robert M. Hanson
    Larson-Anderson Professor of Chemistry
    Chair, Chemistry Department
    St. Olaf College
    Northfield, MN
    http://www.stolaf.edu/people/hansonr


    If nature does not answer first what we want,
    it is better to take what answer we get.

    -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900




--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



--
Dr. Stefan Richter
Software and IT Specialist
Molecular and Cellular Modeling Group (MCM)
HITS gGmbH
Schloss-Wolfsbrunnenweg 35
69118 Heidelberg
Germany
phone: +49 - 6221 - 533 279
fax: +49 6221 533298
email: [email protected]
http://www.h-its.org
http://www.eml-research.de
_________________________________________________
Amtsgericht Mannheim / HRB 337446
Managing Directors:
Dr. h. c. Dr.-Ing. E. h. Klaus Tschira
Prof. Dr.-Ing. Andreas Reuter

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to