Re: [Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
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 Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
Re: [Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
var state = jmolGetPropertyAsString(stateInfo) ... jmolScript(state) 2011/9/23 Angel Herráez angel.herr...@uah.es 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 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 -- 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 Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
Re: [Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
Thanks Bob! -- 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 Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
Re: [Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
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 angel.herr...@uah.es 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 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 -- 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 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 -- 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 Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
Re: [Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
Good; thanks, Jonathan I vote for having this jmolToSigned() added to Jmol.js I know it may need further testing, but it seems to work fine and having it there is the good way to have it tested. -- 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 Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
Re: [Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
What's the goal of JmolToSigned? Looks to me like it just returns a file name. On Fri, Sep 23, 2011 at 8:01 AM, Jonathan Gutow gu...@uwosh.edu wrote: 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 angel.herr...@uah.es 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 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 -- 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 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 -- 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 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 -- 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 Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
Re: [Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
What's the goal of JmolToSigned? Looks to me like it just returns a file name. It **assigns** a file name to the _jmol.archivePath variable. This allows the page to destroy an applet and replace it with the signed applet. Or that's the idea -- 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 Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
Re: [Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
I get it. 2011/9/23 Angel Herráez angel.herr...@uah.es What's the goal of JmolToSigned? Looks to me like it just returns a file name. It **assigns** a file name to the _jmol.archivePath variable. This allows the page to destroy an applet and replace it with the signed applet. Or that's the idea -- 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 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 -- 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 Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
Re: [Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
Hi Jonathan I have not strong confidence on this, but I will drop a couple of comments 1. I'd guess that changing the archive parameter on the fly will need thorough cross-browser evaluation. Do your Sage pages have a single JmolApplet in them? Otherwise, the shift will not work. As I recall, combination of signed and unsigned applets in the same page is not possible --but maybe that's a limitation impose by the current design of Jmol.js, using a single jmolInitialize() call. 2. How about opening a new window (pop-up) with the signed applet and pass the state to it? --and that gives you a place to add any help/info on how to save files from Jmol -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
Re: [Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
There you go - that's it! #2. Just use the code at http://chemapps.stolaf.edu/jmol/docs/examples-12/JmolPopup.htm I think it's as easy as opening that page from the original with the ?SIGNED option on the command line. Bob 2011/6/18 Angel Herráez angel.herr...@uah.es Hi Jonathan I have not strong confidence on this, but I will drop a couple of comments 1. I'd guess that changing the archive parameter on the fly will need thorough cross-browser evaluation. Do your Sage pages have a single JmolApplet in them? Otherwise, the shift will not work. As I recall, combination of signed and unsigned applets in the same page is not possible --but maybe that's a limitation impose by the current design of Jmol.js, using a single jmolInitialize() call. 2. How about opening a new window (pop-up) with the signed applet and pass the state to it? --and that gives you a place to add any help/info on how to save files from Jmol -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ 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 -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
Re: [Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
Sorry, I've been in transit for about the last 16 hours and didn't get all these messages in order. Below are my comments based on testing. On Jun 18, 2011, at 10:55 AM, Robert Hanson wrote: There you go - that's it! #2. Just use the code at http://chemapps.stolaf.edu/jmol/docs/examples-12/JmolPopup.htm I think it's as easy as opening that page from the original with the ?SIGNED option on the command line. That's a possibility. However the popup window is not as intuitive as just having the applet switch over. My testing suggests switching applets as needed is not a problem. Bob 2011/6/18 Angel Herráez angel.herr...@uah.es Hi Jonathan I have not strong confidence on this, but I will drop a couple of comments 1. I'd guess that changing the archive parameter on the fly will need thorough cross-browser evaluation. Do your Sage pages have a single JmolApplet in them? Otherwise, the shift will not work. As I recall, combination of signed and unsigned applets in the same page is not possible --but maybe that's a limitation impose by the current design of Jmol.js, using a single jmolInitialize() call. I've found no problems using a mixture of signed and unsigned applets on a page, although I do have to keep track of which is which. I have controls that require a signed applet check and switch to a signed applet if necessary. Dr. Jonathan H. Gutow Chemistry Departmentgu...@uwosh.edu UW-Oshkosh Office: 920-424-1326 800 Algoma BoulevardFAX:920-424-2042 Oshkosh, WI 54901 http://www.uwosh.edu/facstaff/gutow -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
[Jmol-developers] Idea for on-the-fly unsigned to signed applet switching...
I've had some requests here at Sage Days to switch from the unsigned to the signed applet when the user asks to do a download of the view they've made on the page. To be able to continue using Jmol.js, I came up with the following idea. 1) Unload the unsigned applet saving its state in Javascript (I already do this for memory management in Sage as people often open up lots of Jmols). 2) Call new public function in Jmol.js that sets the _jmol.archive to JmolAppletSigned0.jar (Maybe call it jmolToSigned). 3) Reload the Jmol applet using normal Jmol.js calls. At that point the user will get the warnings associated with the signed applet, but should be expecting it. Does anybody see a problem with this idea? Jonathan -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers