No problem hiding a canvas element -- In JSmol we use canvas elements that are just JavaScript variables -- not even in the DOM yet -- to hold background images and text prior to setting into the main canvas.

getAppletHtml() will not work with JSmol. At least for now those are incompatible. I thought I had a solution to that, but it didn't work, and I haven't had time to get back to it.


On Mon, Mar 4, 2013 at 4:05 AM, Angel HerrŠez <> wrote:
Hi Jonathan

I have 2 lines of thought

1. Using purely css to hide the divs with the unwanted Jmols -- this
will not prevent creation, in principle, but some browsers do not
create objects if they are hidden, I believe (style='display:none')

2. Have you tried using getAppletHtml() ? That would inject the Jmol
object code when you need

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
Jmol-developers mailing list

Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN

If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900