Collections:
Loading JSME JavaScript in "body"
Can I load JSME JavaScript code in HTML "body" element instead of "head"?
✍: FYIcenter.com
Yes, you can load JSME JavaScript code in HTML "body" element instead of "head"
1. Create a new HTML document, load-JSME-in-body.html, with JSME loaded in the "body" element:
<html>
<head>
<title>My JSME Editor</title>
</head>
<body>
<!-- loading JSME JavaScript library -->
<script type="text/javascript" src="/jsme/jsme.nocache.js"></script>
<!-- running JSME in the "div" tag identified as "jsmeID" -->
<script>
function jsmeOnLoad() {
jsmeObj = new JSApplet.JSME("jsmeID", "380px", "340px");
}
</script>
<div id="jsmeID"></div>
</body>
</html>
2. Copy load-JSME-in-body.html to the Apache Web server and run open it in a Web browser. You see JSME molecule editor displayed.
3. Try some functions on the editor. You see no issues.
⇒ JS Loading Error - JSME Instance Named as "jsme"
2020-05-18, 2415🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1001131 SMILES: CC1=CC=C(C=C1)[S](=O)(=O )N[C@H](CC2=NN=C3[N]2N=C (CS3)C4=CC...
Molecule Summary: ID: FYI-1002224 Names: InChIKey: SXSBYAFKYBVTDA-UHFFFAOYS A-NSMILES: CN4CCC(COc2nc...
How to generate image from a given chemical structure with the ketcher.generateImage() method? If yo...
Molecule Summary: ID: FYI-1002963 Names: InChIKey: XDOZZFLMQKAFFY-UHFFFAOYS A-NSMILES: O=C1CCC(=O)N(...
Molecule Summary: ID: FYI-1000939 SMILES: N#CN1CCC(C(=O)Nc2ncc(-c3 ccccc3)s2)C1Received at FYIcenter...