Order matters in your js files links
I use the following declaration:
<script type="text/javascript" src="jmol/JSmol.min.js"></script>
<script type="text/javascript" src="jmol/j2s/j2sjmol.js"></script>
That is with the minified version and without webGL.
Paul
Le 22 févr. 2013 à 12:43, Simone Sturniolo a écrit :
> Hi,
>
> I'm trying to switch my JMol applet web page to JSMol - mainly to avoid all
> the problems related with ever increasing restrictive security policies for
> Java. I put all the main JSMol files in a folder, j2s in a subfolder, loaded
> the scripts:
>
> <script type="text/javascript" src="jsmol/j2s/j2sjmol.js"></script>
> <script type="text/javascript" src="jsmol/JSmolCore.js"></script>
> <script type="text/javascript" src="jsmol/JSmolApplet.js"></script>
> <script type="text/javascript" src="jsmol/JSmolControls.js"></script>
> <script type="text/javascript" src="jsmol/JSmolApi.js"></script>
> <script type="text/javascript" src="jsmol/JSmolGLmol.js"></script>
> <script type="text/javascript" src="jsmol/JSmoljQuery.js"></script>
> <script type="text/javascript" src="jsmol/JSmolJSV.js"></script>
> <script type="text/javascript" src="jsmol/JSmolThree.js"></script>
> <script type="text/javascript" src="jsmol/JSmol.js"></script>
>
> completed the info section as follows:
>
> var main_info = {
> width: jmolW,
> height: jmolH,
> addSelectionOptions: false,
> color: "#000000",
> debug: false,
> defaultModel: "",
> memoryLimit: 512,
> readyFunction: null,
> script: "",
> use: "HTML5",
> j2sPath: "jsmol/j2s",
> serverURL: "http://chemapps.stolaf.edu/jmol/jsmol/jsmol.php",
> console: "myJmol_infodiv",
> scriptCallback: "afterscript_callback",
> loadStructCallback: "afterload_callback",
> pickCallback: "pick_callback",
> src: null,
> }
>
> left the rest of the code unchanged, basically following the instructions
> found on http://wiki.jmol.org/index.php/JSmol, and now am running the thing
> on Firefox 18.0.2. I get this error:
>
> TypeError: Jmol._getElement(...).style is undefined
> Jmol._getElement(this, "infotablediv").style.display = (tf ? "block" :
> "none");
> JSmol.js (line 395)
>
> What could be causing this, and what did I forget to do?
> Thank you very much!
>
> Simone
>
>
> --
> _______________
>
> Nuovo indirizzo e-mail:
> simonesturni...@gmail.com
> ------------------------------------------------------------------------------
> 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_feb_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
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_feb
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users