Yes, Eric. That is a bug. I thought I had caught all those. I will need
your script that failed so I can test it. The one with "end if" or "endif"

Bob

On Thu, Oct 15, 2015 at 6:14 PM, Eric Martz <ema...@microbio.umass.edu>
wrote:

> Dear Bob,
>
> While developing FirstGlance, I test by running from local files in
> Firefox (on OS X; currently Firefox 41.0.2). All tests below were done
> using *HTML5* (no Java).
>
> My current in-progress version of FirstGlance loads and displays 1d66
> using JSmol from *Sept 20*. Function appears OK.
>
> When I use JSmol from *October 13*, the molecule does not load/display.
> My error reporting code says that JSmol is saying:
>
> script compiler ERROR: invalid context for end if
>
> (but the same Javascript and JSmol commands work with the Sept 20 JSmol).
>
> When I look in Firefox -> Tools -> Web Developer -> Browser Console with
> JSmol *Sept 20, there are 27 'syntax error' lines* all referring to JSmol
> code (not FirstGlance code), even though the molecule displays and function
> seems good.
>
> With JSmol *Oct 13, there are only 6 syntax error reports* (listed
> below). I have marked the 'syntax errors' in red.
>
> -----------------
> element_focus_changed_caller: 3682822
> no browser or host: 3682822
> element_focus_changed_caller: 3682822
> no browser or host: 3682822
> before ff_id generation
> ff_id generation 1
> ff_id generation 2
> ff_id generation 3
> after window.setInterval
> before "linkedBrowser.addEventListener"
> before "addEventListener"
> element_focus_changed_caller: 7769794
> no browser or host: 7769794
> element_focus_changed_caller: 7769794
> no browser or host: 7769794
> tab_id_created_sent: 7769794
> process request - let's do: 
> <http://s23.sitemeter.com/js/counter.js?site=s23FirstGlance,
> 6> <http://s23.sitemeter.com/js/counter.js?site=s23FirstGlance,6>
> unreachable code after return statement main_cs.js:140:1
> unreachable code after return statement main_cs.js:397:1
> JSmol load jmolApplet0 loadClazz... JSmol.min.js:273:477
> JSmol load jmolApplet0 start applet... JSmol.min.js:273:477
> process request - let's do: 
> <http://mpp.vindicosuite.com/?y=3&t=h&u=file%3A%2F%2F%2FUsers%2Femartz%2FDOSFiles%2FD-disk%2FERICS1WS%2Fjmol%2Ffgij%2Ffg.htm%3Fmol%3D1d66%26NOJAVA&r=,
> 7>
> <http://mpp.vindicosuite.com/?y=3&t=h&u=file%3A%2F%2F%2FUsers%2Femartz%2FDOSFiles%2FD-disk%2FERICS1WS%2Fjmol%2Ffgij%2Ffg.htm%3Fmol%3D1d66%26NOJAVA&r=,7>
> JSmol exec jmolApplet0 loadClazz null -- OK JSmol.min.js:272:366
> xhr.open async=false url=jsmol/j2s/core/package.js JSmol.min.js:178:297
> Synchronous XMLHttpRequest on the main thread is deprecated because of its
> detrimental effects to the end user's experience. For more help
> http://xhr.spec.whatwg.org/ JSmol.min.js:178:0
> xhr.open async=false url=jsmol/j2s/core/package.js JSmol.min.js:178:297
> process request - let's do: 
> <http://s23.sitemeter.com/meter.asp?site=s23firstglance&refer=&ip=24.34.192.154&w=1920&h=1080&clr=24&tzo=240&lang=en-US&pg=file%3A///Users/emartz/DOSFiles/D-disk/ERICS1WS/jmol/fgij/fg.htm%3Fmol%3D1d66%26NOJAVA&js=1&rnd=0.9908319751848993&zyxver=1.120524,
> 7>
> <http://s23.sitemeter.com/meter.asp?site=s23firstglance&refer=&ip=24.34.192.154&w=1920&h=1080&clr=24&tzo=240&lang=en-US&pg=file%3A///Users/emartz/DOSFiles/D-disk/ERICS1WS/jmol/fgij/fg.htm%3Fmol%3D1d66%26NOJAVA&js=1&rnd=0.9908319751848993&zyxver=1.120524,7>
> not well-formed package.js:1:1
> xhr.open async=false url=jsmol/j2s/core/corejmol.z.js JSmol.min.js:178:297
> element_focus_changed_caller: 7769794
> no browser or host: 7769794
> element_focus_changed_caller: 7769794
> no browser or host: 7769794
> not well-formed package.js:1:1
> syntax error corejmol.z.js:1:1
> xhr.open async=false url=jsmol/j2s/java/net/UnknownServiceException.js
> JSmol.min.js:178:297
> xhr.open async=false url=jsmol/j2s/JM/Structure.js JSmol.min.js:178:297
> syntax error UnknownServiceException.js:1:1
> xhr.open async=false url=jsmol/j2s/J/io/JmolBinary.js JSmol.min.js:178:297
> syntax error Structure.js:1:1
> xhr.open async=false url=jsmol/j2s/J/g3d/PrecisionRenderer.js
> JSmol.min.js:178:297
> syntax error JmolBinary.js:1:1
> JSmol exec jmolApplet0 start applet null -- OK JSmol.min.js:272:366
> xhr.open async=false url=jsmol/j2s/core/corescript.z.js
> JSmol.min.js:178:297
> syntax error PrecisionRenderer.js:1:1
> syntax error corescript.z.js:1:1
> element_focus_changed_caller: 7769794
> no browser or host: 7769794
> element_focus_changed_caller: 7769794
> no browser or host: 7769794
> element_focus_changed_caller: 7769794
> no browser or host: 7769794
> element_focus_changed_caller: 7769794
> no browser or host: 7769794
>
> -----------------------
> I interpret this to mean that some change in JSmol between Sep 20 and Oct
> 13 is a bug. Let me know if I can help.
>
> -Eric
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


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
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to