I think what I need is the Jmol._getWrapper or a lot of its contents.  Any 
thoughts?  Unfortunately, that's all the time I can put in this weekend.  Back 
to grading...
Jonathan

Begin forwarded message:

> From: "Gutow, Jonathan H" <gu...@uwosh.edu>
> Subject: Has anybody figured out how to cleanly flip between a server side 
> image and a live JSmol entity?
> Date: March 2, 2013 7:54:23 PM CST
> To: jmol-us...@lists.sourceforge.net
> 
> 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                                 gu...@uwosh.edu
> UW-Oshkosh                                           Office:920-424-1326
> 800 Algoma Boulevard                                 FAX:920-424-2042
> Oshkosh, WI 54901
>                http://www.uwosh.edu/facstaff/gutow/
> 

                        Dr. Jonathan H. Gutow
Chemistry Department                                 gu...@uwosh.edu
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-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to