Bob,
Thanks for the clarification.
But, for Jmol features to work on the client machine, it must have Java
installed. Am I right? Jmol2.js does not completely do away with Java.
But, JSmol is a completely stand-alone application, albeit with less
functionality.
How does Jmol2.js improve JSmol? Please explain.
Amjad
On Tue, Sep 24, 2013 at 12:11 PM, Grossman, Robert B <
[email protected]> wrote:
> Amjad,
>
> I have switched from Jmol Java applet to JSmol. It was very easy.
>
> (1) After downloading JSmol into a folder called jsmol, I put a symlink
> to it in a folder in my application, called /nosession.
>
> (2) I changed every instance of
> <script src="/nosession/jsmol/Jmol.js" type="text/javascript"></script>
>
> in my application to
>
> <script src="/nosession/jsmol/JSmol.min.js"
> type="text/javascript"></script>
> <script src="/nosession/jsmol/Jmol2.js"
> type="text/javascript"></script>
>
> The order of these two resources was important.
>
> (3) In Jmol2.js, I changed
>
> Jmol.Info = {
>
> jarPath: "java",
> jarFile: "",
> j2sPath: "j2s",
>
> to
>
> Jmol.Info = {
>
> jarPath: "/nosession/jsmol/java",
> jarFile: "",
> j2sPath: "/nosession/jsmol/j2s",
>
> That's all it took. The only problem I encountered was that one of the
> Jmol methods I was using, jmolLoadInline(), we not yet implemented in
> Jmol2.js. Bob Hanson kindly provided me with a fresh version of Jmol2.js
> that had the method.
>
> -- Bob G.
>
> From: Amjad Farooq <[email protected]>
> Reply-To: <[email protected]>
> Date: Tue, 24 Sep 2013 10:26:34 -0400
> To: <[email protected]>
> Subject: Re: [Jmol-users] difficulties encountered in switching to JSmol
> -- part deux
>
> Hi Robert,
>
> I am utterly confused now. What is this Jmol2.js? Are you saying that
> using this file one can run Jmol on the client machine even if it does not
> have a Java installed? In other words, Jmol2.js runs Java from the server
> side? Is that correct?
>
> Can someone please elaborate on this point. I recently switched to JSmol
> simply because many of my collaborators complained about my Jmol interface
> not running on their machines due to Java issues. Now, if Jmol2.js can
> eliminate the need for client to have a fully functional Java, then why do
> I need to to switch to JSmol?
>
> I am lost on this.
>
> Amjad
>
> *AMJAD FAROOQ PhD DIC | Associate Professor
> Dept of Biochemistry & Molecular Biology | Miller School of Medicine |
> University of Miami | Miami | FL 33136
> Located @ Gautier Building #217 | Mail @ 1011 NW 15th Street #217, Miami ,
> FL 33136
> [email protected] | off 305-243-2429 | lab 305-243-9799 | fax
> 305-243-3955 | www.farooqlab.net*
>
>
>
>
>
> On Tue, Sep 24, 2013 at 9:49 AM, Grossman, Robert B <
> [email protected]> wrote:
>
>> I downloaded the new Jmol2.js file you gave me, and it works great!
>> Thanks.
>>
>> So with this new JSmol, all the Java is now running server-side, is
>> that correct? I no longer have to worry about whether the user's Java is
>> enabled?
>>
>> From: Robert Hanson <[email protected]>
>> Reply-To: <[email protected]>
>> Date: Mon, 23 Sep 2013 22:18:28 -0500
>> To: "[email protected]" <[email protected]>
>> Subject: Re: [Jmol-users] difficulties encountered in switching to JSmol
>> -- part deux
>>
>> There may be a few differences like that. For now, just use
>>
>> Jmol.script(yourAppid, 'load DATA "mydata"\n' + yourInlineData + '\nEND
>> "mydata" ')
>>
>> or give this one a try:
>>
>> http://chemapps.stolaf.edu/jmol/jsmol/js/Jmol2.js
>>
>>
>>
>>
>> On Mon, Sep 23, 2013 at 3:15 PM, Grossman, Robert B <
>> [email protected]> wrote:
>>
>>> OK, I read a little further down in the Wiki and saw that I could
>>> accomplish the switch another way: leave the calls to jmolApplet(), etc.
>>> alone and instead use both JSmol.min.js and Jmol2.js as resources. So I
>>> did so, and I also added a symlink to the jsmol/j2s folder in the same
>>> folder as the page that calls the "applet". So now JSmol loads, but I get
>>> this alert:
>>>
>>> jmolLoadInline not implemented
>>>
>>> So, any chance of this method being implemented in the near future?
>>> Or maybe it has already been implemented in a more recent version? I'm
>>> using jsmol-13.3.4. (BTW, I tried to download JSmol 13.3.5 from
>>> SourceForge, but decompression failed. Instead I downloaded one of the
>>> 13.3.4 versions.)
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> October Webinars: Code for Performance
>>> Free Intel webinars can help you accelerate application performance.
>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>>> from
>>> the latest Intel processors and coprocessors. See abstracts and register
>>> >
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> 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
>>
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance Free Intel webinars can help you
>> accelerate application performance. Explore tips for MPI, OpenMP, advanced
>> profiling, and more. Get the most from the latest Intel processors and
>> coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk_______________________________________________Jmol-users
>> mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>> from
>> the latest Intel processors and coprocessors. See abstracts and register >
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance Free Intel webinars can help you
> accelerate application performance. Explore tips for MPI, OpenMP, advanced
> profiling, and more. Get the most from the latest Intel processors and
> coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk_______________________________________________Jmol-users
> mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users