Dear Bob,
The write 'canceled' error in FirstGlance went away when I stopped using
jmolScript('write x.png') from Jmol2.js
and started using instead
Jmol.script(jmolApplet0, 'write x.png')
It had nothing to do with browser or OS (repeatable in Windows, MSIE, etc.).
You can see a problem here:
http://bioinformatics.org/firstglance/fgix/jsmol/jsmol.htm
I modified jsmol/jsmol.htm with 3 changes:
* included js/Jmol2.js
* defaults to Java
* new big red links to test 3 ways of sending the script to Jmol_S
When the 'write' command is sent via jmolScript() (Jmol2.js) there is a
javascript error reported thus in the Firefox Browser Console (Tools,
Web Developer):
TypeError: a is undefined
a.script()
JSmol.min.js:337
jmolScript()
Jmol2.js:281
<anonymous>
javascript:jmolScript('write%20no_wait.png'):1
JSmol.min.js:337:504
I am using jmolScriptWait() for most commands in FirstGlance, and
jmolScript() for the few that don't work with the wait. No problem
obviously to use Jmol.script() for the write command.
I'm still unclear what evoked the 'canceled' error report.
I believe it comes from Jmol_S.
The word 'canceled' occurs only twice in all FirstGlance code, and not
in a way that could generate this error report.
I note in JSmol.min.js
strAbort = "canceled",
This is not the Java source, of course, but I suspect it is related to
the error message I saw.
-Eric
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users