I have tested "write pngj" and "capture" to write files to the local disk from an online HTML page. I also tested the ability to drop a pngj into Jmol in a browser. I tested these 5 browsers (all current versions):

Chrome, Edge*, Firefox, Internet Explorer 11* (IE11), Safari#.
   * Windows only.
   # OS X only.

Chrome and Edge do not run Java. The other 3 do.

Tests were done in Windows 7 and/or 10, and in OS X Yosemite (10.10.5).

All testing was done at http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm

Commands used for testing (entered in the Jmol console):
   write pngj "filename.png"
   capture "filename.gif" rock 45

RESULTS

WRITING A PNGJ FILE: Works in Chrome, Firefox, IE11 in both Windows and OS X, from both JSmol(HTML5) and Jmol_S(Java). Works in Safari with JSmol(HTML5). Fails in Edge and Safari(Java mode).

DROPPING A PNGJ FILE INTO JMOL: Same results as writing pngj, except fails in Firefox(Java mode only, OS X only) because the image replaces the HTML page containing Jmol.

CAPTURE FROM JSMOL(HTML5):

From JSmol(HTML5) an error message is generated in every case. Samples are below. The error message opens in an alert subwindow, and after closing with the OK button, generation of the animation proceeds.

From JSmol(HTML5): Works in Firefox in both Windows and Mac, in IE11 and Safari. Fails in Chrome (both Windows and OS X) and Edge. In IE11 only, one must permit popups.

Generating the frames for a multi-GIF animation from JSmol(HTML5) is very slow (about one second/frame) except in Safari. From Jmol(Java) it is very fast.

From Jmol(Java): No error message. Works in Firefox in both Windows and Mac. Works in IE11. Fails in Safari. (Chrome and Edge do not run Java.)

The above results are re-iterated below in tabular form.

OS     Jmol   Browser  Write-pngj     Drop-pngj Capture
---------------------------------------------------------------------------------------
Win7 JSmol IE11 YES* YES* PopupBlocker+ErrMsg+YES (very slow!)
              FF       YES            YES          ErrMsg+YES (very slow)
              Chrome   YES            YES          ErrMsg+NO[1]

Win10  JSmol  Edge     PopBlok+NO[2] NO[3]        ErrMsg+NO[2] (very slow!)

       Java   IE11     YES            YES          YES# (very fast!)
              FF       YES            YES          YES (very fast!)

OS10.10.5
       JSmol  FF       YES            YES          ErrMsg+YES (very slow!)
              Chrome   YES            YES          ErrMsg+NO[1] (slow)
              Safari   YES            YES          ErrMsg+YES (fast)

       Java   FF       YES NO[5] YES (extremely fast)
              Safari   NO[4] NO NO[4]

Safari fails to retrieve small molecules from NCI in Jmol_S, but works in JSmol.

* confirmed also for Win10; # confirmed also for Win7.

[1] Completes process, no error, nothing saved (even with popups enabled for the site). [2] Seems to complete process and opens a new tab, but nothing, no error msgs. [3] Cannot drop anything including an htm file into Edge. Did not find a setting to enable this. [4] Error "Operation not permitted". Also the Java file save dialog does not show the directory/file list!
[5] Image opens, replacing the Jmol_S page.

----------------
Error message from Firefox below. From other browsers, some messages say

"TypeError: Unable to get property 'intValue' of undefined or null reference try/catch path".
TypeError: params.get(...) is null try/catch path:
0 function (b,d)
 args[0]=TypeError: params.get(...) is null
 args[1]=function (){a.instantialize(this,arguments)}
1 javajs.img.GifEncoder.setParams(params)
 args[0]={captureMode=movie, date=2015-11-17T11:00:25, captureFps=10,…
(etc etc)

---------------------------------------------------------------------------------

-Eric

------------------------------------------------------------------------------
Give your users amazing mobile app experiences with Intel XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2-D/3-D games for multiple OSs.
Then get your creation into app stores sooner, with many ways to monetize.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to