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

Thanks for your help

Germain



Germain Salvato Vallverdu
06 88 59 08 87
http://gvallver.perso.univ-pau.fr <http://gvallver.perso.univ-pau.fr/> (page 
perso) 
https://github.com/gVallverdu <https://github.com/gVallverdu> (GitHub)

------------------------------------------------------------------------------
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