Once you've got the state, all I did was make a little function that toggles
the setting to use the signed applet in Jmol.js. You could do it from outside
Jmol.js, but I think that is a bad programming habit. Here's the function I
added to Jmol.js in the form of a patch.
@@ -139,6 +139,10 @@
_jmol.params.doTranslate = ''+TF;
}
+function jmolToSigned(){
+ _jmolGetJarFilename(true);
+}
+
function _jmolGetJarFilename(fileNameOrFlag) {
_jmol.archivePath =
(typeof(fileNameOrFlag) == "string" ? fileNameOrFlag : (fileNameOrFlag ?
"JmolAppletSigned" : "JmolApplet") + "0.jar");
On Sep 23, 2011, at 4:24 AM, Robert Hanson wrote:
> var state = jmolGetPropertyAsString("stateInfo")
> ...
> jmolScript(state)
>
>
> 2011/9/23 Angel Herráez <[email protected]>
> Jonathan, I'm trying to use this idea of replacing the applet with
> the signed vesion on request.
> Coud you share the scripts you use for retrieving the state and
> applying ti again after the applet has been replaced? I'm stuck
> trying jmolEvaluate('state'), show state, print state...
>
> Thanks a lot,
> Angel
>
>
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Jmol-developers mailing list
> [email protected]
> 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
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Jmol-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
Dr. Jonathan H. Gutow
Chemistry Department [email protected]
UW-Oshkosh Office:920-424-1326
800 Algoma Boulevard FAX:920-424-2042
Oshkosh, WI 54901
http://www.uwosh.edu/facstaff/gutow
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers