Let me check that I didn't accidentally pick up an outdated Jmol.js, I  
should get a chance this evening (its on my home computer).  That line  
doesn't look like what I remember.  Thanks for looking into it.  If  
we've got a fixed version already, then I'm in good shape.

Jonathan
On Oct 12, 2010, at 1:41 PM, Angel Herráez wrote:

> Jonathan, I know what you mean. The idea is that zero may be taken  
> as false (no id
> provided). However, my test now seems to behave (12.1.14)
>
> The line in Jmol.js that does the trick says
>   nameSuffix == undefined && (nameSuffix = appletCount);
>
> but I really don't understand how this code works.
>
> What exact code are you using to destroy and recreate the applet?
> I have tried
> function destroy() {
>  document.getElementById("cont").innerHTML="";
> }
> function create() {
>  jmolSetDocument(0)
>  document.getElementById("cont").innerHTML =  
> jmolApplet([width,height], scriptStr, n)
> }
>
> where "cont" is a div containing the applet
>
>
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating  
> great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> 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






------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to