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, 706👍, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1000954 SMILES: CC(C(C(=O)OC)C(=O)OC)C(C (=O)O)NC(=O)C(CC1=CC(=CC =C1)F)NC(=...
What Is "obgen" command? How to use it to Generate Molecule 3D Structures? "obgen" command is a comm...
How to Display Fingerprint Fragments using "babel" command? I want to know how many fragments are us...
Molecule Summary: ID: FYI-1001814 SMILES: ClC1=CC(NC(=O)C23CC4CC(C C(C4)C2)C3)=CC(C2CCCC2)= C1ClRecei...
Molecule Summary: ID: FYI-1000267 SMILES: N[17C@@](F)([18C])C(=[19 O])OReceived at FYIcenter.com on:...