Support/JavaScript frameworks
Contents
Compatibility of Jmol applets with JavaScript frameworks
Please share here any experience with including Jmol applets in pages that use JavaScript frameworks or JavaScript libraries (both compatibilities and incompatibilities).
jQuery
resizable
The Jmol applet may be inserted in a div
that receives jQuery resizable
attribute. If the applet is given a 100% size, this makes an applet that may be resized at will by the user. (The container div
must have explicit width and height.)
Uses
- jQuery basic library, e.g. jquery.min.js
- jQuery UI, e.g. jquery-ui.min.js and one of the associated themes like jquery-ui.css
draggable
The Jmol applet may be inserted in a div
that receives jQuery draggable
attribute. The user can thus move the applet around the page.
Uses
- jQuery basic library, e.g. jquery.min.js
- jQuery UI, e.g. jquery-ui.min.js and one of the associated themes like jquery-ui.css
Jmol-JSO / JSmol
The new Jmol JavaScript Object library (JSmol) includes part of jQuery, so it should be fully compatible. If you need extra jQuery functionality, you should be careful to avoid conflicts between duplicate jQuery calls.
Prototype
...
Dojo Toolkit
...