Hi Inbal,
I ran your script locally (not served) by putting it into a crude page with my
Jmol references and a local script. Indeed, Angel’s suggestion of using JQuery
html worked.
I should mention that I removed some java components from your Info definition.
This should not change the result, but just for reference here it is:
var Info = {
color: "#000000",
height: 450,
width: 500,
//use: "java HTML5", // "HTML5" or
"Java" (case-insensitive)
use: "HTML5", // "HTML5" or "Java"
(case-insensitive)
j2sPath: "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://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php", // this is not applied
by default; you should set this value explicitly
script: "script " + scriptURL,
allowJavaScript: true
};
Otis
--
Otis Rothenberger
[email protected]
http://chemagic.com
> On Nov 3, 2015, at 8:46 AM, Angel Herráez <[email protected]> wrote:
>
> Hi Inbal
>
> The code looks good, and indeed if the Java modality works, there should be
> no major issues. I have a couple of (rather blind) suggestions you may try
>
> I see a space at the end of the paths in Info, which should not be there.
>
> Try using relative paths rather than absolute paths, in j2sPath and scriptURL
>
> Try using quotes around the script file name.
>
> script: 'script "' + scriptURL + '"; ',
>
> In my experience, in some pages innerHTML fails to work. Try using the
> equivalent jQuery:
> $("#" + divID).html( Jmol.getAppletHtml(jmolApplet0) );
>
> None of them should be significant, given the java one works, but...
> Good luck! Let us know the outcome
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users