If this works in general, we should probably add
jmolReplaceWithSignedJmol(divName, target)
and we should consider giving each applet a designated <span> id that we can
specifically replace.
Bob
On Sun, Sep 25, 2011 at 8:23 PM, Robert Hanson <[email protected]> wrote:
>
> This worked!
>
> var SCRIPT
>
> function replaceWithSignedJmol() {
> var s = jmolEvaluate('_signedApplet');
> if (s=='true') { return; }
> SCRIPT = jmolGetPropertyAsString('stateInfo', '', '0');
> document.getElementById('JmolAppletCont').innerHTML = '';
> jmolToSigned(true);
> jmolSetDocument(false);
> document.getElementById('JmolAppletCont').innerHTML = jmolApplet(350,
> "javascript jmolScript(SCRIPT)", '0');
> jmolSetDocument(document);
> }
>
> That is, once the applet is loaded, firing the JavaScript command
> jmolScript() to load the saved script into Jmol.
>
>
> Bob
>
>
>
> --
> 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
>
--
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
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users