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.pack.par_a.value) + '}')
}
There was also a missing space between load and the quotes.
You can probably skip the parseInt functions, since you are doing
string concatenation anyway and the fields return strings.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers