This is JavaScript only. On Tue, Dec 22, 2015 at 1:55 PM, Rolf Huehne <rhue...@leibniz-fli.de> wrote:
> On 12/22/2015 03:18 AM, Robert Hanson wrote: > > BTW, that's because "{" will be read as a JavaScript statement grouping: > > > > { > > var x = 3; > > ... > > } > > > > By putting "0," before that, you guarantee that it is read as an object. > > > > You can also use > > > > y = javascript('JSON.parse(\"'+x+'"\")') > > > > where x is JSON encoded. I could imagine that would be a bit faster, > > because it is using a more restricted vocabulary. > > > Thanks, Bob. The tip with adding '0,' did work in JSmol/HTML5. > > 'JSON.parse' didn't work. There was the same error message as with just > 'x'. > > With JSmol/Java none of the variants seems to work. Either the Java > plugin crashed or nothing seemed to happen (no CPU load), although JSmol > stayed blocked for at least an hour (I stopped waiting). > > Regards, > Rolf > > > -- > > Rolf Huehne > Postdoc > > Leibniz Institute on Aging - Fritz Lipmann Institute (FLI) > Beutenbergstrasse 11 > 07745 Jena, Germany > > Phone: +49 3641 65 6205 > Fax: +49 3641 65 6210 > E-Mail: rhue...@leibniz-fli.de > Website: http://www.leibniz-fli.de > > Scientific Director: Prof. Dr. K. Lenhard Rudolph > Head of Administration: Dr. Daniele Barthel > Chairman of Board of Trustees: Burkhard Zinner > > VAT No: DE 153 925 464 > Register of Associations: No. 230296, Amtsgericht Jena > Tax Number: 162/141/08228 > > > > ------------------------------------------------------------------------------ > _______________________________________________ > 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, Department of Chemistry 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
------------------------------------------------------------------------------
_______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users