Bill, take a look at Jmol.js
function jmolRadioGroup(arrayOfRadioButtons, separatorHtml, groupName)
I think that 'swhat the "separatorHtml" is for.
so:
jmolRadioGroup([
["spacefill off", "off"],
["spacefill 70", "70"],
["spacefill 20%", "20%", "checked"],
["spacefill 50%", "50%"],
["spacefill 100%", "100%"]
],"<br>");
should do the trick. Also, if you needed to really break this up, so that, say
they are in two rows, you could use:
jmolRadioGroup([
["spacefill off", "off"],
["spacefill 70", "70"],
],"","mygroupname");
jmolBr()
jmolRadioGroup([
["spacefill 20%", "20%", "checked"],
["spacefill 50%", "50%"],
["spacefill 100%", "100%"]
],"","mygroupname");
-Bob
William Reusch wrote:
Q: What are you trying to do?
Miguel
--------------------------------
Nothing very complicated. The examples of Jmol.js I have examined often
have a row of buttons or checkboxes created by the following script:
jmolRadioGroup([
["spacefill off", "off"],
["spacefill 70", "70"],
["spacefill 20%", "20%", "checked"],
["spacefill 50%", "50%"],
["spacefill 100%", "100%"]
]);
If one wishes to have these buttons in a column rather than a row,
perhaps in a table, then the common procedure in html would be to
position each button by one or more [br] tags. However, these tags
prevent the javascript from functioning.
Bill
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users
--
Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College 1520 St. Olaf Ave., Northfield, MN
55057
mailto:[EMAIL PROTECTED] http://www.stolaf.edu/people/hansonr
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users