Hi Angel,
thanks a lot for your help, the applet works fine now that I use JmolApplet0*.
Just the passing of the script to jmolApplet seems not work correct.
One example (in a file 'test.jmol', all on one line, same directory as
the html page)
background white; load 12E8.pdb; set frank off; wireframe off;
spacefill off; select protein; cartoon on; colour chain; select GLN3,
LEU4, TYR33; cartoon off; wireframe on; colour black; spacefill 60;
The first 2 commands, background and load are working fine, everything
after them seemed to be ignored. When I pass the string as an
argument to jmolApplet in HTML page it works.
does not work:
jmolApplet([frameWidth* .5,frameHeight* .95], 'script "./test.jmol" ' );
works:
jmolApplet([frameWidth* .5,frameHeight* .95],"background white; load
12E8.pdb; set frank off; wireframe off; spacefill off; select protein;
cartoon on; colour chain; select GLN3, LEU4, TYR33; colour black;
cartoon off; wireframe on; spacefill 60;
All the other settings are as you recommended.
Many thanks,
Thomas
On Fri, Jul 25, 2008 at 03:45, Angel Herráez <[EMAIL PROTECTED]> wrote:
> Just after replying, I see now why it may be working in the same folder and
> not in the other.
> For clarification:
>
> 1) If you use
>
> /var/www/html/jmol/JmolApplet.jar
> /var/www/html/jmol/Jmol.js
> /var/www/html/index.html
>
> and
>
> <script type="text/javascript" src="jmol/Jmol.js"></script>
> jmolInitialize("jmol/");
>
> Jmol will not start because the JmolApplet0*.jar files are not there.
>
>
> 2) But if you use
>
> /var/www/html/JmolApplet.jar
> /var/www/html/jmol/Jmol.js
> /var/www/html/index.html
>
> and
>
> <script type="text/javascript" src="jmol/Jmol.js"></script>
> // jmolInitialize("jmol/");
>
> That is, you do not call jmoInitialize(), then the deafult is to use
> JmolApplet.jar in the current
> folder, so it works
>
>
> Anyway, as I said, it is recommended to use the JmolApplet0*.jar set, so you
> should do:
>
> 3)
> /var/www/html/jmol/JmolApplet0.jar
> /var/www/html/jmol/JmolApplet0_Core.jar
> /var/www/html/jmol/JmolApplet0_i18n.jar
> etc.
> /var/www/html/jmol/Jmol.js
> /var/www/html/index.html
>
> and
>
> <script type="text/javascript" src="jmol/Jmol.js"></script>
> jmolInitialize("jmol/");
>
>
> Another solution (not the recommended one):
>
> 4)
> /var/www/html/JmolApplet.jar
> /var/www/html/jmol/Jmol.js
> /var/www/html/index.html
>
> and
>
> <script type="text/javascript" src="jmol/Jmol.js"></script>
> jmolInitialize("jmol/", "JmolApplet.jar");
>
> that is, to say specifically which applet file is to be used.
>
> As I said, all this is explained in the doc. If you think it is not clear
> there, please say so and
> suggest an improvement in the wording, so we can update the page.
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users