2010/10/12 Angel Herráez <angel.herr...@uah.es>

> 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.
>
>
It says: "If nameSuffix is undefined, then assign the value of appletCount
to nameSuffix."



> 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
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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
------------------------------------------------------------------------------
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