Here is my fix for MSIE and JSmol's Java detection:
features.supportsJava = function() {
if (!Jmol.featureDetection._javaEnabled) {
Jmol.featureDetection._javaEnabled = (navigator.javaEnabled()
&& (!Jmol._isMsie || Jmol._isFile)? 1 : -1);
// sorry just can't deal with intentionally turning off Java in
MSIE for LOCAL pages
}
return (Jmol.featureDetection._javaEnabled > 0);
};
On Thu, Apr 24, 2014 at 9:49 AM, Robert Hanson <[email protected]> wrote:
> Well, what do you know? It's hard for me to believe that all of
> http://www.pinlady.net/PluginDetect/scripts/PluginDetect_NoPlugin.js is
> necessary anymore. But I am impressed that it is doing better than JSmol,
> which simply uses navigator.javaEnabled(). I notice the comment in
> JmolCore.js:
>
> features.supportsJava = function() {
> if (!Jmol.featureDetection._javaEnabled) {
> if (Jmol._isMsie) {
> return true;
> * // sorry just can't deal with intentionally turning
> off Java in MSIE*
> } else {
> Jmol.featureDetection._javaEnabled =
> (navigator.javaEnabled() ? 1 : -1);
> }
> }
> return (Jmol.featureDetection._javaEnabled > 0);
> };
>
> that we can't detect Java being disable in MSIE. Because MSIE still
> reports true for navigator.javaEnabled() even when it is not.
>
> But, actually, it turns out that's not true. It turns out that MSIE
> reports true
>
> *only for local pages. *
> PluginDetect_NoPlugin has the same problem as JSmol, reporting incorrectly
> that Java is enabled for a local page.
>
> So with that change to JSmolCore.js, I think there is absolutely no need
> for PluginDetect
>
>
> Bob
>
>
>
>
> On Thu, Apr 24, 2014 at 3:38 AM, Angel Herráez <[email protected]>wrote:
>
>> Thank you, Andreas
>>
>> I kown this is a tricky issue, that's I was surprised by the claim at
>> PDB.
>>
>> I've been basically resorting to a user decision rather than the
>> automated one I would like.
>>
>> I will test your checking algorithm, thanks
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Start Your Social Network Today - Download eXo Platform
>> Build your Enterprise Intranet with eXo Platform Software
>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
>> Get Started Now And Turn Your Intranet Into A Collaboration Platform
>> http://p.sf.net/sfu/ExoPlatform
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
>
>
> --
> 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
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users