wow, now THERE'S a secret. Thanks, Otis!
Angel, I think the Jmol.js code for the mac check should be changed from:
if (browser == "mozilla" && browserVersion >= 5) {
// miguel 2004 11 17
// checking the plugins array does not work because
// Netscape 7.2 OS X still has Java 1.3.1 listed even though
// javaplugin.sf.net is installed to upgrade to 1.4.2
eval("try {var v = java.lang.System.getProperty('java.version');" +
" _jmol.isBrowserCompliant = v >= '1.4.2';" +
" } catch (e) { }");
} else if (browser == "opera" && browserVersion <= 7.54) {
isBrowserCompliant = false;
} else {
isBrowserCompliant = hasGetElementById &&
!((browser == "msie") ||
(browser == "webkit" && browserVersion < 125.12));
}
to simply:
if (browser == "opera" && browserVersion <= 7.54
|| browser == "webkit" && browserVersion < 125.12
|| browser == "msie")
isBrowserCompliant = false;
else
isBrowserCompliant = hasGetElementById
I don't see any particular advantage to checking the Java version for
browser compatibility, and this is clearer.
Bob
On Mon, May 30, 2011 at 11:38 AM, Otis Rothenberger
<[email protected]>wrote:
> Oh my,
>
> MSIE 9: F12 then script tab
>
> All the immediate JavaScript control you want, I'm impressed.
>
>
> Otis
>
> --
> Otis Rothenberger
> Department of Chemistry
> Illinois State University Normal, IL 61790-4160
> http://chemagic.org
>
> ------------------------------
> *From*: "Otis Rothenberger" <[email protected]>
> *Sent*: Monday, May 30, 2011 12:26 PM
>
> *To*: [email protected]
> *Subject*: Re: [Jmol-users] firefox 4.0.1 jmol warning
>
>
> Bob,
>
> You can still use it, but you have to be careful. It's a unibox now. Two
> points:
>
> 1) While you can still paste code, you have to actually type javascript:
> each time.
> 2) Be careful to hit enter on the code, and not accidentally select one of
> the searchable bookmarks in the unibox drop-down.
>
> Otis
>
> --
> Otis Rothenberger
> Department of Chemistry
> Illinois State University Normal, IL 61790-4160
> http://chemagic.org
>
> ------------------------------
> *From*: "Robert Hanson" <[email protected]>
> *Sent*: Monday, May 30, 2011 12:10 PM
> *To*: [email protected]
> *Subject*: Re: [Jmol-users] firefox 4.0.1 jmol warning
>
> OK, that's the issue, then. If you could find the JavaScript error console
> and tell us what that says, that would be helpful.
> Sounds to me like this browser has no access to java.lang.System
>
> Also -- I notice that with MSIE 9 you can no longer enter javascript
> commands this way on the URL line. Anybody know a work-around for that?
>
> Bob
>
>
> On Mon, May 30, 2011 at 10:52 AM, Andreas Prlic <[email protected]> wrote:
>
>> > Progress. What does your computer report when you issue this on the URL
>> > input line of your browser:
>> >
>> > javascript:alert(java.lang.System.getProperty('java.version'))
>>
>> This does not give any response.
>>
>> Andreas
>>
>>
>> ------------------------------------------------------------------------------
>> vRanger cuts backup time in half-while increasing security.
>> With the market-leading solution for virtual backup and recovery,
>> you get blazing-fast, flexible, and affordable data protection.
>> Download your free trial now.
>> http://p.sf.net/sfu/quest-d2dcopy1
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
>
>
> --
> Robert M. Hanson
> Professor of Chemistry
> St. Olaf College
> 1520 St. Olaf Ave.
> Northfield, MN 55057
> http://www.stolaf.edu/people/hansonr
> phone: 507-786-3107
>
>
> 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
>
>
>
>
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
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
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users