It isn't actually in $(document).ready because the call is triggered by a watch 
function that is looking for the div created by AJAX activity.  If the div 
contains a particular hidden div this is called.

Jonathan
On Apr 21, 2014, at 9:32 AM, Robert Hanson <hans...@stolaf.edu> wrote:

> Looks perfect. And that's in $(document).ready ?
> 
> 
> On Sun, Apr 20, 2014 at 9:42 PM, Jonathan Gutow <gu...@uwosh.edu> wrote:
> These applets are created on the fly on a page that is already in existence 
> using a call that looks like:
>  
> $('#'+jmolDivStr).html(Jmol.getAppletHtml("jmolApplet"+appletID,jmolStatus.jmolInfo[appletID]));
> *jmolDivStr contains the string name of the div the applet is being inserted 
> into.  This div is created based on an AJAX interaction with the SageMath 
> server.
> *jmolApplet is the string name of the applets
> *appletID is the number assigned to the applet
> *jmolStatus.jmolInfo[appletID] just points to the jmolInfo data structure 
> that has been constructed for this particular applet based on information 
> from the server.
> 
> I am using the coverImage feature of applet loading.  I see the 2nd canvas 
> whether or not I defer applet loading.
> 
> Does that clarify the situation any?  Any other ideas about what I should 
> look at?
> 
> Thanks,
> Jonathan
> 
> 
> On Sun, Apr 20, 2014 at 9:16 PM, Robert Hanson <hans...@stolaf.edu> wrote:
> Something's going wrong with your code, but I don't know from this. Try using 
> Firefox and "Inspect Element" to see what that object is. My guess is that 
> you are generating the canvas twice. Are you being sure to NOT use 
> Jmol.getApplet() within the page and instead are only creating the applet 
> within $(document).ready(function() {...}) ?
> 
> Bob
> 
> 
> 
> 
> On Sun, Apr 20, 2014 at 8:48 PM, Jonathan Gutow <gu...@uwosh.edu> wrote:
> I'm having issues with the 2nd 2-D canvas that shows up below the active 
> JSmol blocking access to some of the active components on a web page.  Is 
> this second canvas a place that backup drawing is done.  It never shows 
> anything, but is collecting clicks and a popup menu can be activated in it.  
> It shows up outside of the boarder of the div within which JSmol is active.  
> In the DOM this second canvas is listed in the same div as JSmol is active in.
> 
> Did I trigger something bad or am I misusing something?
> 
> Thanks,
> Jonathan
> 
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
> 
> 
> 
> 
> -- 
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> 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
> 
> 
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
> 
> 
> 
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
> 
> 
> 
> 
> -- 
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> 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
> 
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform_______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers

                        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/


------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to