Hi all, I'm developing a newer version of the PatchFinderPlus web-server (http://pfp.technion.ac.il), which uses Jmol to display the results. I'm trying now to adjust my code to work without java (the HTML5 mode) to overcome the fact that Google Chrome no longer supports java applets. I read all the documentation and went over the example files, but I can't get the HTML5 version work (in Firefox, Chrome and IE). When I use java everything works fine but when I use HTML5, the applet doesn't appear at all. I use the latest version of Jmol and I checked it both locally and as a web-server.
This is how my code looks like: <script src="http://132.68.106.35/PFP/Jmol/jmol-14.4.0_2015.10.22b/jsmol/JSmol.min.j s"></script> <script> function createJmolApplet(scriptURL, divID) { var Info = { color: "#000000", height: 450, width: 500, //use: "java HTML5", // "HTML5" or "Java" (case-insensitive) use: "HTML5", // "HTML5" or "Java" (case-insensitive) j2sPath: "http://132.68.106.35/PFP/Jmol/jmol-14.4.0_2015.10.22b/jsmol/j2s/", // only used in the HTML5 modality jarPath: "http://132.68.106.35/PFP/Jmol/jmol-14.4.0_2015.10.22b/jsmol/java/", jarFile: "JmolAppletSigned0.jar", // only used in the Java modality isSigned: true, // only used in the Java modality serverURL: "http://132.68.106.35/PFP/Jmol/jmol-14.4.0_2015.10.22b/jsmol/php/jsmol.php", // this is not applied by default; you should set this value explicitly script: "script " + scriptURL, allowJavaScript: true }; Jmol.setDocument(0); jmolApplet0 = Jmol.getApplet("jmolApplet0", Info); // creates the object but does not insert it document.getElementById(divID).innerHTML = Jmol.getAppletHtml(jmolApplet0); } </script> . . . <script type="text/javascript"> $(document).ready(function(){ createJmolApplet('http://132.68.106.35/PFP/1445935880/chainA/1rltA.spt', 'Jmol1Div'); }); </script> I don't know why it's not working. Is there anything else I have to configure in the sever? I would really appreciate your help with this issue. Thanks, Inbal ------------ Inbal Paz Bioinformatician and web developer Yael Mandel Gutfreund's lab Technion - Israel Institute of Technology Tel: +972-4-8293701
------------------------------------------------------------------------------
_______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users