Hi Harris,

                            jmolInitialize("Jmol.js");

is incorrect - in the parenthesis should be the path to the Jmol applet. If the applet is in the same directory, use simple a single dot (.).

Jmol.js must be referred to in the header, like this:
<script language="javascript" type="text/javascript" src="Jmol.js"></script>

Frieda

On Mar 1, 2007, at 7:15 AM, Harris Procopiou wrote:

I try to load multiple files but i can't... I 'm working with perl :

print "
                       <form>
                        <script>
                            jmolInitialize("Jmol.js");
                            jmolApplet(300, "load "fileset" "1BZ8.pdb" 
"1C26.pdb"; select */2; color red;");
                        </script>
                        </form>";

The problem is quotes... how can i do this ?

I tried :

print "
                       <form>
                        <script>
                            jmolInitialize("Jmol.js");
                            jmolApplet(300, "load 'fileset' '1BZ8.pdb' 
'1C26.pdb'; select */2; color red;");
                        </script>
                        </form>";

But it does not work too. And :

print "
                       <form>
                        <script>
                            jmolInitialize("Jmol.js");
                            jmolApplet(300, load "fileset" "1BZ8.pdb" 
"1C26.pdb"; select */2; color red;);
                        </script>
                        </form>";

The same..

Thanx

Bob Hanson a écrit :
Frieda Reichsman wrote:


Say I have 3 files loaded but my set of labels should appear on only 
one of them. I also want to be able to turn on and off the display of 
the three proteins at will.

Is there an easy way to select a series of single atoms for labeling 
and have the label apply only to one file?

Or is the only way to do this to repeat "select file=1 and ..." over 
and over, like so:

select file=1 and 263.n
label helix 1


If it's one model per file, you can just use the old syntax:

select 263.n/1; label helix1

Certainly you need only the number of select/label combinations as you 
have distinct labels, but other than that, yes, you need to specify the 
atom and model number to get the label on just that atom.


In other words is there some way to say, "the following selections 
apply ONLY to file =1" (and then also end it in some way)?


Well, you could do:

select 263.n; label helix1
select 283.n; label helix2
...
select file != 1
labels off

That is, just put all the labels in, but then in the end turn the 
unwanted ones off.

Bob


///////////////////////////////////////////


Frieda Reichsman, PhD

Molecules in Motion

Interactive Molecular Structures



///////////////////////////////////////////






-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
_______________________________________________
Jmol-users mailing list



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
_______________________________________________
Jmol-users mailing list

///////////////////////////////////////////


Frieda Reichsman, PhD

Molecules in Motion

Interactive Molecular Structures

http://www.moleculesinmotion.com


///////////////////////////////////////////