User: Really it's simpler than that. If the logo is Jmol, it's java; if
it's JSmol, it's HTML5. We don't have labels in JSmol/WebGL, so if there's
no logo, it's WebGL. That's all.

Programmer: Just look at

<appletName>._jmolType

This reads one of these four values:

"Jmol._Canvas2D (JSmol)"
"Jmol._Canvas3D (JSmol)"
"Jmol._Applet"
"Jmol._Applet (signed)"

In the case where you are allowing alternatives (which we can argue is not
a good idea anymore because of the way browsers are blocking Java in
different, undetectable, ways), the  getApplet function  has a third
parameter "checkOnly" that returns an "applet" but just fills in this
_jmolType variable so that you can see what it would be IF you created the
applet.

By the way, you no longer have to assign the value of jmolGetApplet() to a
variable. It does that itself.

Jmol.getApplet("app1",Info)

is the same as

app1 = Jmol.getApple("app1",Info)

Glad to have that simplified!

Bob






On Mon, Mar 25, 2013 at 6:09 AM, Jaime Prilusky <
jaime.prilu...@weizmann.ac.il> wrote:

> On Mar 25, 2013, at 12:42 PM, Rolf Huehne wrote:
> > For me the point here is not that the user knows what he is using but
> > that scripts can know it and adapt accordingly.
> >
> > Regards,
> > Rolf
>
> Of course. This is true in a perfect ideal world.
>
> In our experience, more than once you need to support users with broken
> pages. Then,  it's important to know what environment they are running at
> the time.
>
> Jaim
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to