> Hi all,
>
> Is it possible to separate jmol commands given to jmolapplet by a hard
> return?
> Like this:
>
> jmolApplet(
>            600,
>            "load WIF.pdb;
>             model all;
>             select all;");

Depends upon the lexical parsing rules for JavaScript.

Here are some options:

not much improvement
-------------------

 jmolApplet(
            600,
            "load WIF.pdb;" +
            "model all;" +
            "select all;");

better ... because it separates the script from the code.
------

var script =
            "load WIF.pdb;" +
            "model all;" +
            "select all;"

jmolApplet(600, script);


best
----

jmolApplet(600, "script myScript.txt");


> Of course, the above doesn't work...
> This could be handy when you have to pass 40 commands to the applet.
> I know this could be circumvented by writing some javascript, but is it
> possible without javascript?

If you are writing large scripts, I recommend that they be put in a
separate script file.

Further, I recommend that you develop these script files within the
context of the Jmol application.


Miguel



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to