Hello Thomas
> When using
> jmolInitialize("jmol/");
> the PDB file is not loaded and the status bar shows "Applet
> jmolApplet() notinited"
Right. Jmol.js does not use JmolApplet.jar, but the set of 16 (?) jar files
which names start
by JmolApplet0. This is recommended since only the required applet modules will
be
downloaded, so response is quicker.
If for some reason you prefer to use the single "monolithic" applet, there is a
switch in
jmolInitialize(). Check the Javascript Library Documentation, where this is
explained.
http://jmol.sourceforge.net/jslibrary/
That should be the reason, although I'm not sure given your comment that it
works when the
jarfile is in the same folder as the page. jmolInitialize has a default when no
applet jarfile
name is given, might be that. It's described in the doc.
> My second question is:
> Can I use a textfile as input for jmolApplet? Something like:
> jmolApplet([frameWidth* .5,frameHeight* .95],"./input.jmol");
You should be able to use that, but since that file will be a script with Jmol
commands, the
correct way is
jmolApplet([frameWidth* .5,frameHeight* .95], 'script "./input.jmol" ' );
(note the single and double quotes)
-------------------------------------------------------------------------
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