Collections:
Migrate JME Applet to JSME JavaScript
How to migrate my old JME Applet Web pages to use JSME JavaScript?
✍: FYIcenter.com
If you have old Web pages that use the JME Applet molecule editor,
you migrate your old pages to use JSME by making 2 changes:
1. Load JSME JavaScript library using a "script" tag in the "head" tag.
<script type="text/javascript" src="/jsme/jsme.nocache.js"></script>
2. Switch the "applet" tag to "div" tag. JSME is smart to read "code" and "archive" attributes in the "div" tag.
<div code="JME.class" archive="JME.jar" width="380px" height="340px"> <param name="options" value="useopenchemlib"/> <param name="smiles" value="c1ccccc1"/> </div>
Here is a simple example of running JSME JavaScript version like the JME applet version:
<html> <head> <title>JME Applet Migration</title> <!-- loading JSME JavaScript library --> <script type="text/javascript" src="/jsme/jsme.nocache.js"></script> </head> <body> <p>Hello, please try the JSME molecule editor below:</p> <!-- running JSME using "div" to simulate "applet" --> <div code="JME.class" archive="JME.jar" width="380px" height="340px"> <param name="options" value="useopenchemlib"/> <param name="smiles" value="c1ccccc1"/> </div> </body> </html>
⇒ JSME Molecule Editor User Interface
2020-05-18, 643👍, 0💬
Popular Posts:
Where to find FAQ (Frequently Asked Questions) on running Open Babel on CentOS? Here is a list of tu...
How Stereoinformation Is Presented in SDF/Mol and SDF/Mol V3000 Files? Ideally stereoinformation sho...
How to display the InChI string and InChIKey of the molecule in JSME editor? JSME does not offer any...
Molecule Summary: ID: FYI-1000956 SMILES: C#[CH:1] Received at FYIcenter.com on: 2021-08-07
Molecule Summary: ID: FYI-1000215 SMILES: C(CC[C@@H](C(=O)O)NC(=O) C1=CC=C(NCC2=CN=C3N=C(N) NC(=O)C3=N...