[Jmol-developers] de.po 404 error
Hi Angel, thanks a lot for the help! I indeed was setting the path wrong Info.J2sPath. I had a simple script setting Info.J2sPath and Info.jarPath depending on the surrounding, and this failed at the new location. Klaus -Ursprüngliche Nachricht- Von: jmol-developers-requ...@lists.sourceforge.net [mailto:jmol-developers-requ...@lists.sourceforge.net] Gesendet: Dienstag, 25. Juli 2017 10:18 An: jmol-developers@lists.sourceforge.net Betreff: Jmol-developers Digest, Vol 122, Issue 3 Send Jmol-developers mailing list submissions to jmol-developers@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/jmol-developers or, via email, send a message with subject or body 'help' to jmol-developers-requ...@lists.sourceforge.net You can reach the person managing the list at jmol-developers-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Jmol-developers digest..." Today's Topics: 1. de.po 404 error (Klaus Schaper) 2. Re: de.po 404 error (=?ISO-8859-1?Q?Angel_Herr=E1ez?=) 3. Re: de.po 404 error (=?ISO-8859-1?Q?Angel_Herr=E1ez?=) -- Message: 1 Date: Tue, 25 Jul 2017 07:48:51 +0200 From: "Klaus Schaper" <scha...@hhu.de> To: <jmol-developers@lists.sourceforge.net> Subject: [Jmol-developers] de.po 404 error Message-ID: <000d01d30509$b19cbc80$14d63580$@hhu.de> Content-Type: text/plain; charset="iso-8859-1" Hi everybody, I am just moving my website from a windows 7 server (apache 2.4.4, php 5.4.16) to a Unix system (Virtual Server, CentOS, apace 2.4.25, php 7.1.6). On the new server the menus of the included jsmol instances do not show German menus. Network analysis of firefox gives me a 404 error for de.po. Actually de.po is searched at: http://test.schelm.hhu.de/scheLM_3D/2Propanol/http:/_INCLUDE/JSMOL/idioma/de .po, which is a complete unreasonable path. It should be: http:/_INCLUDE/JSMOL/idioma/de.po I upgraded jsmol from 14.4.1 to 14.20.3, but the error persists. As far as I know this path is set automatically and I have no idea how to change it. Any ideas? Thanks, Klaus ******** PD Dr. Klaus Schaper http://www.photochemie.hhu.de/ oder http://www.klaus-schaper.de <http://www.klaus-schaper.de/> e-mail: scha...@klaus-schaper.de Arbeitsgruppe f?r Organische Photochemie Institut f?r Organische Chemie und Makromolekulare Chemie I Raum 26.43.00.27 Heinrich-Heine-Universit?t D?sseldorf Universit?tsstr. 1 D-40225 D?sseldorf Deutschland Telefon: +49 211 81 12571 FAX: +49 211 81 14324 -- next part -- An HTML attachment was scrubbed... -- Message: 2 Date: Tue, 25 Jul 2017 09:34:39 +0200 From: "=?ISO-8859-1?Q?Angel_Herr=E1ez?=" <angel.herr...@uah.es> To: <jmol-developers@lists.sourceforge.net> Subject: Re: [Jmol-developers] de.po 404 error Message-ID: <5976f48f.17520.1d967...@angel.herraez.uah.es> Content-Type: text/plain; charset=US-ASCII Hello Klaus 1. Yes, the location of the language files cannot be specified. As far as I remember, it always looks for them in a 'idioma' folder which is a sibling of the 'java' folder. I'm not sure what happens when you don't specify the java folder 2. Some javascript error loading the language file is normal and does not prevent it from working Is this your location? http://test.schelm.hhu.de/scheLM_3D/ What I see in the source there may be a cause. you are using an Info.jarPath that is outside the main JSmol folder. Try changing the java folder to be under the JSmol folder, or move the idioma folder to be a sibling of the java folder. Alternatively, if you are not using the java mode, comment out definition of jarPath and see what happens -- Message: 3 Date: Tue, 25 Jul 2017 09:43:14 +0200 From: "=?ISO-8859-1?Q?Angel_Herr=E1ez?=" <angel.herr...@uah.es> To: <jmol-developers@lists.sourceforge.net> Subject: Re: [Jmol-developers] de.po 404 error Message-ID: <5976f692.19025.1d9e5...@angel.herraez.uah.es> Content-Type: text/plain; charset=ISO-8859-1 On the other hand, Why http:/_ ? That is not correct You need either two slashes (and then it must be an absolute server url) or no http (relative url) > is a complete unreasonable path. ?It should be: > http:/_INCLUDE/JSMOL/idioma/de.po that is not correct. You need /_INCLUDE/JSMOL/idioma/de.po Maybe your problem is some code that worked in the Windows server but is not good for the Linux server, after all. -
[Jmol-developers] de.po 404 error
Hi everybody, I am just moving my website from a windows 7 server (apache 2.4.4, php 5.4.16) to a Unix system (Virtual Server, CentOS, apace 2.4.25, php 7.1.6). On the new server the menus of the included jsmol instances do not show German menus. Network analysis of firefox gives me a 404 error for de.po. Actually de.po is searched at: http://test.schelm.hhu.de/scheLM_3D/2Propanol/http:/_INCLUDE/JSMOL/idioma/de .po, which is a complete unreasonable path. It should be: http:/_INCLUDE/JSMOL/idioma/de.po I upgraded jsmol from 14.4.1 to 14.20.3, but the error persists. As far as I know this path is set automatically and I have no idea how to change it. Any ideas? Thanks, Klaus PD Dr. Klaus Schaper http://www.photochemie.hhu.de/ oder http://www.klaus-schaper.de <http://www.klaus-schaper.de/> e-mail: scha...@klaus-schaper.de Arbeitsgruppe für Organische Photochemie Institut für Organische Chemie und Makromolekulare Chemie I Raum 26.43.00.27 Heinrich-Heine-Universität Düsseldorf Universitätsstr. 1 D-40225 Düsseldorf Deutschland Telefon: +49 211 81 12571 FAX: +49 211 81 14324 -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
[Jmol-developers] myJmol as variable in Jmol.script
Thanks to Robert, that did the trick show orientation you will see a parameter "rotation radius" You can set that to a new number, then disable zoom. It sets the magnification for "100%". However, is there an easy way to get the rotationRadius only? I want to read it out from the applet and using show orientation will result in a complex string. I have to split the string and cut out the rotationRadius in order to do math on it. It would be nice do directly get the rotationRadius as number. Thanks to all of you, Klaus **** PD Dr. Klaus Schaper http://www.photochemie.hhu.de/ oder http://www.klaus-schaper.de <http://www.klaus-schaper.de/> e-mail: scha...@klaus-schaper.de Arbeitsgruppe für Organische Photochemie Institut für Organische Chemie und Makromolekulare Chemie I Raum 26.43.00.27 Heinrich-Heine-Universität Düsseldorf Universitätsstr. 1 D-40225 Düsseldorf Deutschland Telefon: +49 211 81 12571 FAX: +49 211 81 14324 -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e___ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
[Jmol-developers] myJmol as variable in Jmol.script
Hi folks, thanks again for your support! Using onClick="KS_AtomeHervorheben(A" instead of onClick="KS_AtomeHervorheben('A')" did the trick and it is definitely better than using eval. And thanks to your tip Angel I am now able to switch between Jmol and Jsmol easily. I had seen this obvious option but during trying everything in order to set the path to Java properly and to include the right files I forgot. Thanks, Klaus -- Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j___ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
[Jmol-developers] myJmol as variable in Jmol.script
Hi everybody, Thanks to Rolf, that did the trick! I successfully converted a little bit of script to the new syntax and the other functions will hopefully cause no problems. However, one more problem remains. After converting the script to the new syntax using 1) Jmol.getApplet(Ziel, Info); and 2) Jmol.script(eval(name), commands); The code will run in my JSmol enviiroment, but not in the Jmol environment. My conclusion is, that either the new syntax is not compatible to the old Jmol using JAVA, or that I did not include all necessary files in my html document. Which files (beside the old Jmol.js) do I have to include? Klaus PD Dr. Klaus Schaper http://www.photochemie.hhu.de/ oder http://www.klaus-schaper.de <http://www.klaus-schaper.de/> e-mail: scha...@klaus-schaper.de Arbeitsgruppe für Organische Photochemie Institut für Organische Chemie und Makromolekulare Chemie I Raum 26.43.00.27 Heinrich-Heine-Universität Düsseldorf Universitätsstr. 1 D-40225 Düsseldorf Deutschland Telefon: +49 211 81 12571 FAX: +49 211 81 14324 -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
[Jmol-developers] myJmol as variable in Jmol.script
Hi everybody, I just decided as recommended to switch from jmolScript to the modern Jmol.script syntax. I create to applets with the following function: function KS_ErzeugeAppRechteck(Ziel) { var Info = {src: "Ethan.xyz"}; Info.j2sPath ="http://schelm.hhu.de/home/Lehre/scheLM_Test/_INCLUDE/JSMOL/j2s;; Jmol.getApplet(Ziel, Info); } I call this function twice from my webpage: KS_ErzeugeAppRechteck('A'); KS_ErzeugeAppRechteck('B'); Thus creating to applets with the name A and B. If I run the following function I can set the color of two atoms in A to blue: function KS_AtomeHervorheben() { Jmol.script(A, "select hydrogen;color white;select atomno=3,atomno=6; color atoms blue"); } If I change myJmol to B I can change the color of two atoms in B function KS_AtomeHervorheben() { Jmol.script(B, "select hydrogen;color white;select atomno=3,atomno=6; color atoms blue"); } However, what I really would like to do is to pass the name of the applet by the function call and parse it into the jmol.script command. function KS_AtomeHervorheben(name) { Jmol.script(name, "select hydrogen;color white;select atomno=3,atomno=6; color atoms blue"); } However, I get the following error TypeError: a._checkDeferred is not a function. Is there any way to path the name of the app by the function call to the Jmol.script command or is there any other way to get the job done. I have webpages containing 7 Jsmol apps and I do not want to write the same commands 7 times. Thanks, Klaus ******** PD Dr. Klaus Schaper http://www.photochemie.hhu.de/ oder http://www.klaus-schaper.de <http://www.klaus-schaper.de/> e-mail: scha...@klaus-schaper.de Arbeitsgruppe für Organische Photochemie Institut für Organische Chemie und Makromolekulare Chemie I Raum 26.43.00.27 Heinrich-Heine-Universität Düsseldorf Universitätsstr. 1 D-40225 Düsseldorf Deutschland Telefon: +49 211 81 12571 FAX: +49 211 81 14324 -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers
[Jmol-developers] JAVA applet in WebPages
Hi Angel, thanks again! Everything works fine now. I just realized, that my browser did not update Jmol after reloading the webpage. After closing the browser and opening it again, the up to date Jmol version was loaded and the function in question works fine! All my problems are solved! Klaus PS: And I know, that I sometime should convert to the new Jmol.script syntax, but this will be quite some work. -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers