On 11/30/2015 12:38 PM, Germain Salvato Vallverdu wrote:
> Hello
>
> I try to do my first JSmol page.
>
> Following the wiki page about JSmol I uploaded the JSmol.min.js file and 
> java/ and j2s/ folders in a folder called jmol/ at the root of my web page. 
> Thus, my first question is, is that ok, or do I need something more ?
>
> Next, I added a call to JSmol.min.js :
> <script type="text/javascript" src="JSmol.min.js"></script>
>
> I load an Info variable in the header :
>    <script type="text/javascript">
>      var Info = {
>        color: "#EEEEEE",
>        height: 500,
>        width: 500,
>        use: "HTML5",
>        j2sPath: "/jmol/j2s",
>        jarPath: "/jmol/java",
>        jarFile: "JmolAppletSigned0.jar",
>        isSigned: true,
>        disableInitialConsole: true
>      };
>    </script>
>
> Then in the body I put :
> <form>
>      <script type="text/javascript">
>        Info["script"] = "load AX2.xyz";
>        Jmol.getApplet("AX2", Info);
>        jmolBr();
>        jmolButton("measures delete", "Effacer les mesures");
>      </script>
> </form>
>
> But it does not work. Actually, I am looking for a minimal example of a JSmol 
> page. My page is there : 
> http://gvallver.perso.univ-pau.fr/vsepr/jsmoltest.html
>
Germain, the path for 'JSmol.min.js' is not set correctly in your HTML code.
The HTML codes requests to look here:
http://gvallver.perso.univ-pau.fr/vsepr/JSmol.min.js

But actually it is here:
  http://gvallver.perso.univ-pau.fr/jmol/JSmol.min.js

So you would need in the '<head>' section:

   <script type="text/javascript" src="/jmol/JSmol.min.js"></script>

Regards,
Rolf
-- 

Rolf Huehne
Postdoc

Leibniz Institute on Aging - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany

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

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

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


------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to