shouldn't be hard to do this, but I haven't put any energy into it. Take a
look in JSmolCore.js to see how those divs are being set up. You should
just be able to swap divs in and out of being hidden.


On Sat, Mar 2, 2013 at 7:54 PM, Gutow, Jonathan H <[email protected]> wrote:

> Has anybody figured out how to cleanly flip between a server side image
> and a live JSmol entity?
>
> I am trying to use the JSmol facility for pages that are built on the fly
> and contain an arbitrary number of applets depending on what the user does.
>  Because of browser memory constraints I need to keep no more than 4
> applets or HTML5 entities live at any given time.  With the Java applet, I
> just flipped between an applet and a static picture.  Somewhat like is done
> in the Popin template generated by Jmol.  I cannot seem to get HTML5 JSmol
> to replace just a single entity on a page if I try to activate it with an
> onclick=... or a button.  I believe this is because the javascript is
> trying to look for actual <script> tags in the DOM element it is called
> from.  What I would like is exposure in the API of the calls that generate
> the Javascript that actually places the DOM elements with an option to
> specify the parentNode, rather than hiding them under something that tries
> to figure out where the code should be placed.  The best I can manage at
> present is to get the onclick call to replace the whole document.
>
> I am in the process of working my way through the JSmol code to see which
> hidden calls I would need to access.  Any pointers would be welcome.
>
> Thanks,
> Jonathan
>                         Dr. Jonathan H. Gutow
> Chemistry Department                                 [email protected]
> UW-Oshkosh                                           Office:920-424-1326
> 800 Algoma Boulevard                                 FAX:920-424-2042
> Oshkosh, WI 54901
>                 http://www.uwosh.edu/facstaff/gutow/
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


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
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to