Collections:
What Is JSME JavaScript API
What is JSME JavaScript API? I want to see an example on how to use it.
✍: FYIcenter.com
JSME JavaScript API is programming interface provided by JSME for your
JavaScript code to interact with the JSME editor.
JSME JavaScript API offers the following primary methods under the "JSApplet.JSME" class:
There seems to be no API methods to export/import InChi (or InChi Key).
The following HTML document example, api-smiles.html, shows you how to JSME JavaScript API methods:
<html> <head> <title>API - Show SMILES</title> <!-- loading JSME JavaScript library --> <script type="text/javascript" src="/jsme/jsme.nocache.js""></script> <script> // runnig JSME in the "div" tag identified as "jsme_container" function jsmeOnLoad() { jsmeObj = new JSApplet.JSME("jsme_container", "380px", "340px"); } </script> </head> <body> <p>Hello, please try the JSME molecule editor below:</p> <div id="jsme_container"></div> <button type="button" onclick="alert(jsmeObj.smiles())">Show SMILES</button> </body> </html>
For the complete list of JSME API method, open "./JSME_2017-02-26/api_javadoc/index.html" in a Web browser to read.
2020-05-18, 1393👍, 0💬
Popular Posts:
How to convert Convert SDF to SVG (Scalable Vector Graphics) using Open Babel? I want to see the mol...
What is chem.nlm.nih.gov ChemIDplus Database? chem.nlm.nih.gov ChemIDplus Database contains over 108...
Where to find FAQ (Frequently Asked Questions) on JSME JavaScript API? Here is a list of tutorials t...
What is cactus.nci.nih.gov/trans lateSDF translator? pubcactus.nci.nih.gov/tr anslateSDF translator ...
What Is SDF/Mol V3000 file format? SDF (Structural Data File) V3, also call Mol V3000 file, or Molfi...