Hi,
I am trying to load two molecules and use sync command to sync them.
The example for Jmol is at
http://chemapps.stolaf.edu/jmol/docs/examples-11/sync2.htm
I tried to use JSmol without success, here is my js code:
var jmolApplet0; // set up in HTML table, below
var jmolApplet1;
var Info = {
width: 300,
height: 300,
debug: true,
color: "0xFFFFFF",
addSelectionOptions: true,
serverURL: "http://140.109.55.4/jsmol/jsmol.php",
use: "HTML5",
j2sPath: "j2s",
readyFunction: jmol_isReady,
disableJ2SLoadMonitor: false,
disableInitialConsole: false,
allowJavaScript: true
}
jmolApplet0 = Jmol.getApplet("jmolApplet0", Info);
jmolApplet1 = Jmol.getApplet("jmolApplet1", Info);
Jmol.script(jmolApplet0,'load ../demo/A.pdb;cpk on;color temperature');
Jmol.script(jmolApplet1,'load ../demo/B.pdb;cpk on;color temperature');
Both structures are able to be displayed oo the web page.
I added with extra command:
Jmol.script(jmolApplet0,'sync * ON; sync * "set syncMouse true"');
However, the sync did not work.
Did I miss anything?
Thanks.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users