Hi All,
I have a webpage using JSmol and have been trying to use javascript to
extract the chain IDs of a molecule into an array. I took a look at this
thread (https://sourceforge.net/p/jmol/mailman/message/20018470/) and
realised I need to use 'show chain'.
I have tried the following javascript:
var chains_list = Jmol.evaluateVar(jmolApplet0, 'show chain');
alert(String(chains_list));
Unfortunately the variable chains_list appears to be empty.
If I bring up the console from JSmol in the loaded page and type 'show
chain' it correctly gives the chain IDs. Also, I have
used Jmol.evaluateVar(jmolApplet0, 'other commands') with other commands
and that has worked fine.
Any ideas where I'm going wrong would be very much appreciated!
Thanks
Chris
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users