Re: [Jmol-users] radio buttons
see http://chemapps.stolaf.edu/jmol/simple2.htm buttons on the bottom left. On Sun, Oct 7, 2012 at 6:02 AM, Robert Hanson wrote: > worked at my site. zip up the pages and send them to me, please. > > > On Sun, Oct 7, 2012 at 3:19 AM, Pshemak Maslak wrote: > >> On 10/6/2012 4:43 PM, Robert Hanson wrote: >> > Oops. Clearly I never tested radio buttons with JmolJSO. Attached is a >> > new JmolControls.js >> > >> > Bob >> >> Thanks, but we still cannot make it work. >> >> Now, the call to >> >> c._getRadio() >> >> >> in "Jmol.jmolRadioGroup" in JmolApi.js is returning null causing only >> the first radio to be rendered on the page. However, that radio button >> does work. >> >> PM >> >> >> >> our code >> >> var radios = new Array(); >> radios[0] = ["set background [xF0F0F0]", "light", true]; >> radios[1] = ["set background black", "black"]; >> Jmol.jmolRadioGroup(jmol5, radios); >> >> >> >> >> >> >> -- >> Don't let slow site performance ruin your business. Deploy New Relic APM >> Deploy New Relic app performance management and know exactly >> what is happening inside your Ruby, Python, PHP, Java, and .NET app >> Try New Relic at no cost today and get our sweet Data Nerd shirt too! >> http://p.sf.net/sfu/newrelic-dev2dev >> ___ >> Jmol-users mailing list >> Jmol-users@lists.sourceforge.net >> 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 -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] radio buttons
worked at my site. zip up the pages and send them to me, please. On Sun, Oct 7, 2012 at 3:19 AM, Pshemak Maslak wrote: > On 10/6/2012 4:43 PM, Robert Hanson wrote: > > Oops. Clearly I never tested radio buttons with JmolJSO. Attached is a > > new JmolControls.js > > > > Bob > > Thanks, but we still cannot make it work. > > Now, the call to > > c._getRadio() > > > in "Jmol.jmolRadioGroup" in JmolApi.js is returning null causing only > the first radio to be rendered on the page. However, that radio button > does work. > > PM > > > > our code > > var radios = new Array(); > radios[0] = ["set background [xF0F0F0]", "light", true]; > radios[1] = ["set background black", "black"]; > Jmol.jmolRadioGroup(jmol5, radios); > > > > > > > -- > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > 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 -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] radio buttons
On 10/6/2012 4:43 PM, Robert Hanson wrote: > Oops. Clearly I never tested radio buttons with JmolJSO. Attached is a > new JmolControls.js > > Bob Thanks, but we still cannot make it work. Now, the call to c._getRadio() in "Jmol.jmolRadioGroup" in JmolApi.js is returning null causing only the first radio to be rendered on the page. However, that radio button does work. PM our code var radios = new Array(); radios[0] = ["set background [xF0F0F0]", "light", true]; radios[1] = ["set background black", "black"]; Jmol.jmolRadioGroup(jmol5, radios); -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] radio buttons
Oops. Clearly I never tested radio buttons with JmolJSO. Attached is a new JmolControls.js Bob JmolControls.js Description: JavaScript source -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
[Jmol-users] radio buttons
I need help with a couple of radio buttons: The current code I'm using is: var radios = new Array(); radios[0] = ["set background [xF0F0F0]", "light bckg", true]; radios[1] = ["set background black", "black bckg"]; Jmol.jmolRadioGroup(jmol5, radios); And the error I keep getting is: Uncaught TypeError: Cannot call method '_script' of undefined on line 60 of JmolApi.js Any suggestions of what is wrong? Thanks, PM -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users