For multiple applets, I've been storing references to the applets in an array:

var newapp=Jmol.getApplet('jmolApplet'+modelno, Info);
myapplets[modelno]=newapp;

But I haven't updated to latest Jmol yet.




Quoting Otis Rothenberger <[email protected]>:

> I'm having an erratic display issue with multiple applets. I  
> remember Angel mentioning something about declarations of the  
> following type not being required any longer with JSmol:
>
> var jmolApplet0;
> var jmolApplet1;
> var jmolApplet2;
>
> What's the current best practice with this declaration approach?  
> Currently, I'm still using them. Also, are the integers in the  
> applet names meaningful in any way? Would any type of erratic  
> display error occur if you named three applets moe, larry, and  
> curly? This may sound like a dumb question, but I think I may be  
> seeing a random problem with the following:
>
> var jmolApplet50;
> var jmolApplet51;
> var jmolApplet54;
>
> The above numbering was a mistake, but with this numbering, a few  
> students are reporting that 54 is not rendering.
>
> Otis
>
> --
> Otis Rothenberger
> [email protected]
> http://chemagic.com
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to