What does setProperty look like?
Thanks, Chuck
Charles Shubert, Senior Architect
Software Tools for Academics and Researchers (STAR) Program
Office of Educational Innovation and Technology
Massachusetts Institute of Technology
On Mar 25, 2013, at 7:25 PM, "Michael Evans"
<[email protected]<mailto:[email protected]>> wrote:
Wow, where have I been? This works great. Works really well for grabbing
orientation info too. Thanks, Bob.
Cheers, Mike
---
Michael Evans
Department of Chemistry
University of Illinois, Urbana-Champaign
On Mon, Mar 25, 2013 at 5:23 PM, Robert Hanson
<[email protected]<mailto:[email protected]>> wrote:
Well, you know, since JSmol is JavaScript already, there's really no reason to
use the JSON string business. You can just get the "Java" object now if you are
using the HTML5 option. You will have to learn how to access that info as a
"Java" object, though:
x = Jmol.getPropertyAsJavaObject(jmolApplet0,
"appletInfo").get("operatingSystem")
This works now in HTML5 or Java.
On Mon, Mar 25, 2013 at 4:52 PM, Michael Evans
<[email protected]<mailto:[email protected]>> wrote:
Bob,
scriptWait and scriptWaitAsArray seem not to be working as advertised in the
latest JSmol update. They return a string that looks like an array, but can't
be parsed and cast as an array by something like $.parseJSON because of the
presence of unquoted Jmol commands. Any idea what's up? Just tried messing
around with it in the console here:
http://chemapps.stolaf.edu/jmol/jsmol/test2.htm?USE=HTML5
I use scriptWaitAsArray to pull JSmol's state into Javascript.
Others, if there are any Javascript wizards out there who know of a good way to
pull the real output out of something like this, I'd love to know.
Cheers, Mike
---
Michael Evans
Department of Chemistry
University of Illinois, Urbana-Champaign
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Jmol-users mailing list
[email protected]<mailto:[email protected]>
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
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Jmol-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Jmol-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users