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, 1063👍, 0💬
Popular Posts:
What IS JSME, Molecule Editor in JavaScript? JSME, Molecule Editor in JavaScript is a free molecule ...
What is Open Babel Fastsearch Index file? How to generate it with the "babel" command? Fastsearch in...
What are tools that support the SDF/Mol V3000 file format? There are a number of online or standalon...
How to delete hydrogen atoms from molecule data during data conversion? If hydrogen atoms of a molec...
Where to find FAQ (Frequently Asked Questions) on JSME Molecule Editor User Interface? Here is a lis...