Hi David Yes, cache problems are rather hard when they appear. Not only the htm (easy) and js (not so much) files, but also script files that JSmol "remembers" and the browser does not care about.
And there is often an issue when you update JSmol version in pages. > However, I have reverted to an old version of JSmol because the following > command no longer > works: > > ["select nucleic; colour cpk; colour green; select *a; colour white;", > " Distinguish chains" ], > > The select *a; colour white; bit doesn´t work to colour the second chain > white on the recent Jmol > version. Has the syntax has been changed? I could look myself but this is > really killing me. I think this has been discussed before in this list. That syntax for selecting chains was supported, but it is not very precise and some versions stopped supporting it. You should be safe adding a colon before the chain, select *:A also uppercase vs. lowercase chain ID is not seen different by default, but there is an increasing need to differentiate between both (large PDB models) and Jmol supports it https://chemapps.stolaf.edu/jmol/docs/#set_chaincasesensitive > Oh, there´s one more thing that would be nice. That is if you could scale the > frame as you > switched to mobile, keeping the same proportions. For example, I have width: > 280, height: 280. As > far as I can see from the instructions I can set width: 100% but the height > doesn´t change. Even > serving different hard-coded sizes for different sized viewports would help. Yes, you can set width and height to 100% in Info but then your page must include a div with explicit css width and height that envelopes the JSmol object. i.e. var Info = { width: "100%", height: "100%", use: "HTML5", j2sPath: "mol/j2s", disableInitialConsole: true } <div id="modelContainer"> <div id="jmolContainer" style="width:280px; height:280px;"> <script type="text/javascript"> myJmol = Jmol.getApplet("myJmol", Info); Jmol.script(myJmol,"load mol/B11mer.txt; set background [51,51,51]; restrict nucleic; colour cpk; rotate x 90; zoom 125; spin on;"); </script> </div> It may be not so easy to change the size of the container depending on the platform, but that's css + js external to JSmol. Also you might not get it square shaped (not really a problem if it's rectangular, only you may need to set zoomLarge false in Jmol script) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users