Difference between revisions of "Jmol JavaScript Object/JME"
Jump to navigation
Jump to search
AngelHerraez (talk | contribs) (getting specialized subsections out of the main Jmol-JSO page) |
AngelHerraez (talk | contribs) (getting specialized subsections out of the main Jmol-JSO page) |
||
Line 1: | Line 1: | ||
− | + | = Integration of JME into Jmol-JSO = | |
The [http://chemapps.stolaf.edu/ JME applet] allows the user to draw a molecular structure in 2D. '''Jmol-JSO''' includes the capability to pass information back and forth between JME and Jmol in a seamless manner. The "information panel" that Jmol-JSO implements can be set up to hold the JME applet, allowing tight integration. Alternatively, the JME applet and the Jmol applet can be set side-by-side on a web page, and applet-applet communication can be handled by the page developer. | The [http://chemapps.stolaf.edu/ JME applet] allows the user to draw a molecular structure in 2D. '''Jmol-JSO''' includes the capability to pass information back and forth between JME and Jmol in a seamless manner. The "information panel" that Jmol-JSO implements can be set up to hold the JME applet, allowing tight integration. Alternatively, the JME applet and the Jmol applet can be set side-by-side on a web page, and applet-applet communication can be handled by the page developer. | ||
+ | == Creating and inserting the JME applet == | ||
To create a JME applet, use <code>Jmol.getJMEApplet()</code>. | To create a JME applet, use <code>Jmol.getJMEApplet()</code>. | ||
+ | Syntax: | ||
+ | Jmol.getJMEApplet = function(id, Info, linkedJmolApplet) | ||
− | + | == JME-specific methods == | |
− | |||
All these functions must be applied to the unique '''<code>Jmol</code>''' object (this name is literal, cannot be changed) --see syntax and examples below. | All these functions must be applied to the unique '''<code>Jmol</code>''' object (this name is literal, cannot be changed) --see syntax and examples below. | ||
Revision as of 19:43, 25 February 2013
Integration of JME into Jmol-JSO
The JME applet allows the user to draw a molecular structure in 2D. Jmol-JSO includes the capability to pass information back and forth between JME and Jmol in a seamless manner. The "information panel" that Jmol-JSO implements can be set up to hold the JME applet, allowing tight integration. Alternatively, the JME applet and the Jmol applet can be set side-by-side on a web page, and applet-applet communication can be handled by the page developer.
Creating and inserting the JME applet
To create a JME applet, use Jmol.getJMEApplet()
.
Syntax:
Jmol.getJMEApplet = function(id, Info, linkedJmolApplet)
JME-specific methods
All these functions must be applied to the unique Jmol
object (this name is literal, cannot be changed) --see syntax and examples below.
Syntax:
Jmol.jmeGetFile = function(jme, asJME) Jmol.jmeOptions = function(jme, options) Jmol.jmeReadMolecule = function(jme, jmeOrMolData) Jmol.jmeReset = function(jme) Jmol.jmeSmiles = function(jme, withStereoChemistry)