Re: [Jmol-developers] load structure in HTML page

2010-03-17 Thread Angel Herráez
Piero, you must be careful with the quotes. Javascript gets confused Try this way, combining double quotes (for Jmol) and single quotes (for JS): function setPackaging(){ jmolScript('load "" {' + parseInt(document.pack.par_a.value) + parseInt(document.pack.par_b.value) + parseInt(document.

[Jmol-developers] load structure in HTML page

2010-03-17 Thread P . Canepa
Dear All, I try to within a javascript the following operation load "" { x x x} where x x x are values read from textboxes in my HTML page Then the javascript function would be : function setPackaging(){ jmolScript("load" + "''" + "{" + parseInt(docume