[Jmol-users] Platform-specific switch Java/HTML5

2013-12-12 Thread Rolf Huehne
   Hi all,

I thought that there would be still an automatic switch from Java to 
HTML5 on platforms that don't offer Java at all like 'iPad' (Info 
setting = 'use: JAVA HTML5').

Q: Is this no longer true for Jmol 14.0.1?

After the upgrade of the 'Jena3D Viewer' (http://jena3d.fli-leibniz.de) 
yesterday to Jmol 14.0.1 I asked someone with an 'iPad mini, 1st 
generation' to test it and he got the following message (excerpt):

Either you do not have Java applets enabled in your web browser or your 
browser is blocking this applet.

Regards,
Rolf
-- 

Rolf Huehne
Postdoc

Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany

Phone:   +49 3641 65 6205
Fax: +49 3641 65 6210
E-Mail:  rhue...@fli-leibniz.de
Website: http://www.fli-leibniz.de

   Scientific Director: Prof. Dr. K. Lenhard Rudolph
Head of Administration: Dr. Daniele Barthel
Chairman of Board of Trustees: Dennys Klein

VAT No: DE 153 925 464
Register of Associations: No. 230296, Amtsgericht Jena
Tax Number: 162/141/08228


--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Platform-specific switch Java/HTML5

2013-12-12 Thread Robert Hanson
It's still there. Should work. RCSB uses this. Proteopedia, I think.

I can check that. It all depends upon the result of

Jmol.featureDetection.supportsJava()

which depends upon

navigator.javaEnabled()

Apparently that device reports TRUE for this message.

You have just spaces between JAVA and HTML5 -- no tabs or commas or
semicolons?






On Thu, Dec 12, 2013 at 9:36 AM, Rolf Huehne rhue...@fli-leibniz.de wrote:

Hi all,

 I thought that there would be still an automatic switch from Java to
 HTML5 on platforms that don't offer Java at all like 'iPad' (Info
 setting = 'use: JAVA HTML5').

 Q: Is this no longer true for Jmol 14.0.1?

 After the upgrade of the 'Jena3D Viewer' (http://jena3d.fli-leibniz.de)
 yesterday to Jmol 14.0.1 I asked someone with an 'iPad mini, 1st
 generation' to test it and he got the following message (excerpt):

 Either you do not have Java applets enabled in your web browser or your
 browser is blocking this applet.

 Regards,
 Rolf
 --

 Rolf Huehne
 Postdoc

 Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
 Beutenbergstrasse 11
 07745 Jena, Germany

 Phone:   +49 3641 65 6205
 Fax: +49 3641 65 6210
 E-Mail:  rhue...@fli-leibniz.de
 Website: http://www.fli-leibniz.de

Scientific Director: Prof. Dr. K. Lenhard Rudolph
 Head of Administration: Dr. Daniele Barthel
 Chairman of Board of Trustees: Dennys Klein

 VAT No: DE 153 925 464
 Register of Associations: No. 230296, Amtsgericht Jena
 Tax Number: 162/141/08228



 --
 Rapidly troubleshoot problems before they affect your business. Most IT
 organizations don't have a clear picture of how application performance
 affects their revenue. With AppDynamics, you get 100% visibility into your
 Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics
 Pro!
 http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
 ___
 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
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
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Platform-specific switch Java/HTML5

2013-12-12 Thread Jaime Prilusky
On Dec 12, 2013, at 6:19 PM, Robert Hanson hans...@stolaf.edu wrote:
 It's still there. Should work. RCSB uses this. Proteopedia, I think.

On Proteopedia we use MobileDetect.php ( http://mobiledetect.net ) to send back 
to the user a proper configuration based on the platform.

It seems that checking for Java can't go undetected and it generates the java 
disabled yellow applet report.

Jaim
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Platform-specific switch Java/HTML5

2013-12-12 Thread Rolf Huehne
On 12/12/2013 05:19 PM, Robert Hanson wrote:
 It's still there. Should work. RCSB uses this. Proteopedia, I think.

 I can check that. It all depends upon the result of

 Jmol.featureDetection.supportsJava()

 which depends upon

 navigator.javaEnabled()

 Apparently that device reports TRUE for this message.

 You have just spaces between JAVA and HTML5 -- no tabs or commas or
 semicolons?

Just a space. But when I knew it should still work I looked deeper into 
this and found that the default JAVA HTML5 setting was overwritten 
later by JAVA in the tested case.

This leads to related questions.
In the 'Jena3D Viewer' you can request specifically Jmol or JSmol.
And this decision is also inherited by subsequent viewer openings from 
the current viewer or from a QuickSearch result from within the viewer.
Q: How should this be handled regarding the fallback setting?
(It would be quite tricky to discriminate between the different cases.)
Q: Is there a situation where HTML5 JAVA would lead to using Java 
instead of HTML5 automatically?

Regards,
Rolf

-- 

Rolf Huehne
Postdoc

Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany

Phone:   +49 3641 65 6205
Fax: +49 3641 65 6210
E-Mail:  rhue...@fli-leibniz.de
Website: http://www.fli-leibniz.de

   Scientific Director: Prof. Dr. K. Lenhard Rudolph
Head of Administration: Dr. Daniele Barthel
Chairman of Board of Trustees: Dennys Klein

VAT No: DE 153 925 464
Register of Associations: No. 230296, Amtsgericht Jena
Tax Number: 162/141/08228


--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Platform-specific switch Java/HTML5

2013-12-12 Thread sw
Just for info, I've found JAVA detection can not be relied upon
as even if the browser reports that JAVA is present, it may not  
actually be enabled (browser blocks it).
I used to work around this by trying to run a simple jmolscript on a
timeout after I'd initialized the jmol applet and 'catching' the error.
This was fairly reliable, though depending on timing I could  
needlessly switch to HTML5 even though JAVA was present...
Currently I use mobile detection client-side (detectmobilebrowser.js)  
to choose a default (HTML5 or JAVA), and if all goes wrong, I've  
modified the
'yellow box' with a link to a function that re-initializes Jmol with HTML5...

None of this is perfect so I'd be interested to hear any other ideas  
on how to handle this sort of thing...

Cheers

Simon


Quoting Jaime  Prilusky jaime.prilu...@weizmann.ac.il:

 On Dec 12, 2013, at 6:19 PM, Robert Hanson hans...@stolaf.edu wrote:
 It's still there. Should work. RCSB uses this. Proteopedia, I think.

 On Proteopedia we use MobileDetect.php ( http://mobiledetect.net )  
 to send back to the user a proper configuration based on the platform.

 It seems that checking for Java can't go undetected and it generates  
 the java disabled yellow applet report.

 Jaim
 --
 Rapidly troubleshoot problems before they affect your business. Most IT
 organizations don't have a clear picture of how application performance
 affects their revenue. With AppDynamics, you get 100% visibility into your
 Java,.NET,  PHP application. Start your 15-day FREE TRIAL of  
 AppDynamics Pro!
 http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
 ___
 Jmol-users mailing list
 Jmol-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-users




--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users