I have released a version of JSmol that should work fine for MSIE from a
local page in HTML5. If you need to use a local installation that works in
MSIE, this is for you.

http://chemapps.stolaf.edu/jmol/zip/jmol-14.1.12_2014.03.11.zip

This includes an upgrade to jQuery 1.11.0, which I had to hack to get it to
work with MSIE.

Be aware that if you use JSmol.min.nojq.js because you are providing your
own version of jQuery, generally that's fine. But if you have users that
would access your page from local disk using MSIE (thinking of you,
Simone), that will not work. If that's the case, be sure to use
JSmol.min.js, which includes the modified version of jQuery 1.11.0.

Bob






On Mon, Mar 10, 2014 at 10:20 AM, Robert Hanson <[email protected]> wrote:

> Recently I have been saying that MSIE 11 cannot read local files. I was
> wrong.
>
> A recent upgrade of MSIE (MSIE 11?) broke local file access using jQuery
> 1.10.
>
> The problem is most unusual. It is two parts:
>
> 1) MSIE navigator.userAgent no longer reports "MSIE", which is what JSmol
> uses to flag MSIE for special handling.
>
> 2) MSIE has the VERY unusual feature that
>
>   if (window.ActiveXObject) alert("msie")
>
> no longer gives the alert. This breaks jQuery 1.10.
>
> 3) jQuery 1.11 attempts to fix that, but the logic there still does not
> work
> when a local page in MSIE is accessing a remote resource.
>
> I did not notice this until just now, and I have submitted a bug report to
> jQuery.
>
> Anyway, I have MSIE working with local file reading now, provided the
> files are not binary.
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor 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
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor 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
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to