Hi Guys :

    I have an application that uses JMol, but the radio controls wont
trigger any events.
Im puzzled because :

1) I dont see any errors in the java script console.

2) The JMol Console is clearly registering the events associated with the
buttons...

But alas, there is no result in the rendering of my molecule.

Below is the Code for this page.....  I've truncated the structure info so
as to make this email
less than the size of the TrpRepressor crystal structure's pdb file ;)

<HTML>
<HEAD>
<script type="text/javascript" language="JavaScript"
src="/VennWeb4/jmol2/Jmol.jss
<view-source:http://localhost:8080/VennWeb4/jmol2/Jmol.jss>"></script>
</HEAD>
<BODY>
  <form>
 <BR>
 </BR>
 <script>

        var struc =
"DBREF 1HIP A    1    85     UNP   P00260    HIP_CHRVI     2     86  "+"\n"+
"ATOM      1  N   SER A   1      18.200  12.220  32.160     1     0"+"\n"+
"ATOM      2  CA  SER A   1      18.330  10.860  31.630     1     0"+"\n"+
"ATOM      3  C   SER A   1      17.540  10.740  30.320     1     0"+"\n"+
"HETATM  678  O   HOH A 138       7.060   2.330  21.630     1    12"+"\n"+
"HETATM  679  O   HOH A 139       7.890  14.790   3.150     1    12"+"\n"+
"HETATM  680  O   HOH A 140       3.700  23.600   3.660     1    12"+"\n"+
"HETATM  681  O   HOH A 141      20.690  18.500  24.200     1    12"+"\n"+
"HETATM  701  O   HOH A 161       4.470   8.470  13.760     1    12"+"\n"+
"CONECT  304  619                                             "+"\n"+
"CONECT  323  620                                             "+"\n"+
"CONECT  447  621                                             "+"\n"+
"CONECT  558  622                                             "+"\n"+
"CONECT  619  304  624  625  626                              "+"\n"+
"CONECT  620  323  623  625  626                              "+"\n"+
"CONECT  621  447  623  624  626                              "+"\n"+
"CONECT  622  558  623  624  625                              "+"\n"+
"CONECT  623  620  621  622                                   "+"\n"+
"CONECT  624  619  621  622                                   "+"\n"+
"CONECT  625  619  620  622                                   "+"\n"+
"CONECT  626  619  620  621                                   "+"\n"+
"";

jmolApplet("275%");
jmolLoadInlineScript(struc,"select all;;select 1:A; color
[255,128,128];select: A and resno=1;spacefill 650;;select 2:A; color
[255,255,255];select: A and resno=2;spacefill 650;;select 3:A; color
[255,128,128];select: A and resno=3;spacefill 650;;select 4:A; color
[255,128,128];select: A and resno=4;spacefill 650;;select 5:A; color
[255,128,128];select: A and resno=5;spacefill 650;;select 6:A; color
[255,128,128];select: A and resno=6;spacefill 650;;select 7:A; color
[255,128,128];select: A and resno=7;spacefill 650;;select 8:A; color
[255,255,255];select: A and resno=8;spacefill 650;;select 9:A; color
[255,128,128];select: A and resno=9;spacefill 650;;select 10:A; color
[255,255,255];select: A and resno=10;spacefill 650;;select 11:A; color
[255,255,255];select: A and resno=11;spacefill 650;;select 12:A; color
[255,128,128];select: A and resno=12;spacefill 650;;select 13:A; color
[255,255,255];select: A and resno=13;spacefill 650;;select 14:A; color
[255,128,128];select: A and resno=14;spacefill 650;;select 15:A; color
[255,128,128];select: A and resno=15;spacefill 650;;select 16:A; color
[255,128,128];select: A and resno=16;spacefill 650;;select 17:A; color
[255,128,128];select: A and resno=17;spacefill 650;;select 18:A; color
[255,128,128];select: A and resno=18;spacefill 650;;select 19:A; color
[255,128,128];select: A and resno=19;spacefill 650;;select 20:A; color
[255,255,255];select: A and resno=20;spacefill 650;;select 21:A; color
[255,255,255];select: A and resno=21;spacefill 650;;select 22:A; color
[255,0,0];select: A and resno=22;spacefill 650;;select 23:A; color
[255,0,0];select: A and resno=23;spacefill 650;;select 24:A; color
[255,128,128];select: A and resno=24;spacefill 650;;select 25:A; color
[255,255,255];select: A and resno=25;spacefill 650;;select 26:A; color
[255,128,128];select: A and resno=26;spacefill 650;;select 27:A; color
[255,0,0];select: A and resno=27;spacefill 650;;select 28:A; color
[255,128,128];select: A and resno=28;spacefill 650;;select 29:A; color
[255,128,128];select: A and resno=29;spacefill 650;;select 30:A; color
[255,0,0];select: A and resno=30;spacefill 650;;select 31:A; color
[255,0,0];select: A and resno=31;spacefill 650;;select 32:A; color
[255,0,0];select: A and resno=32;spacefill 650;;select 33:A; color
[255,128,128];select: A and resno=33;spacefill 650;;select 34:A; color
[255,128,128];select: A and resno=34;spacefill 650;;select 35:A; color
[255,128,128];select: A and resno=35;spacefill 650;;select 36:A; color
[255,128,128];select: A and resno=36;spacefill 650;;select 37:A; color
[255,128,128];select: A and resno=37;spacefill 650;;select 38:A; color
[255,128,128];select: A and resno=38;spacefill 650;;select 39:A; color
[255,128,128];select: A and resno=39;spacefill 650;;select 40:A; color
[255,128,128];select: A and resno=40;spacefill 650;;select 41:A; color
[255,128,128];select: A and resno=41;spacefill 650;;select 42:A; color
[255,128,128];select: A and resno=42;spacefill 650;;select 43:A; color
[255,128,128];select: A and resno=43;spacefill 650;;select 44:A; color
[255,128,128];select: A and resno=44;spacefill 650;;select 45:A; color
[255,255,255];select: A and resno=45;spacefill 650;;select 46:A; color
[255,128,128];select: A and resno=46;spacefill 650;;select 47:A; color
[255,0,0];select: A and resno=47;spacefill 650;;select 48:A; color
[255,0,0];select: A and resno=48;spacefill 650;;select 49:A; color
[255,128,128];select: A and resno=49;spacefill 650;;select 50:A; color
[255,128,128];select: A and resno=50;spacefill 650;;select 51:A; color
[255,128,128];select: A and resno=51;spacefill 650;;select 52:A; color
[255,128,128];select: A and resno=52;spacefill 650;;select 53:A; color
[255,128,128];select: A and resno=53;spacefill 650;;select 54:A; color
[255,128,128];select: A and resno=54;spacefill 650;;select 55:A; color
[255,128,128];select: A and resno=55;spacefill 650;;select 56:A; color
[255,0,0];select: A and resno=56;spacefill 650;;select 57:A; color
[255,255,255];select: A and resno=57;spacefill 650;;select 58:A; color
[255,0,0];select: A and resno=58;spacefill 650;;select 59:A; color
[255,255,255];select: A and resno=59;spacefill 650;;select 60:A; color
[255,128,128];select: A and resno=60;spacefill 650;;select 61:A; color
[255,128,128];select: A and resno=61;spacefill 650;;select 62:A; color
[255,128,128];select: A and resno=62;spacefill 650;;select 63:A; color
[255,0,0];select: A and resno=63;spacefill 650;;select 64:A; color
[255,128,128];select: A and resno=64;spacefill 650;;select 65:A; color
[255,128,128];select: A and resno=65;spacefill 650;;select 66:A; color
[255,0,0];select: A and resno=66;spacefill 650;;select 67:A; color
[255,128,128];select: A and resno=67;spacefill 650;;select 68:A; color
[255,0,0];select: A and resno=68;spacefill 650;;select 69:A; color
[255,0,0];select: A and resno=69;spacefill 650;;select 70:A; color
[255,0,0];select: A and resno=70;spacefill 650;;select 71:A; color
[255,128,128];select: A and resno=71;spacefill 650;;select 72:A; color
[255,0,0];select: A and resno=72;spacefill 650;;select 73:A; color
[255,255,255];select: A and resno=73;spacefill 650;;select 74:A; color
[255,255,255];select: A and resno=74;spacefill 650;;select 75:A; color
[255,0,0];select: A and resno=75;spacefill 650;;select 76:A; color
[255,0,0];select: A and resno=76;spacefill 650;;select 77:A; color
[255,0,0];select: A and resno=77;spacefill 650;;select 78:A; color
[255,128,128];select: A and resno=78;spacefill 650;;select 79:A; color
[255,0,0];select: A and resno=79;spacefill 650;;select 80:A; color
[255,128,128];select: A and resno=80;spacefill 650;;select 81:A; color
[255,128,128];select: A and resno=81;spacefill 650;;select 82:A; color
[255,128,128];select: A and resno=82;spacefill 650;;select 83:A; color
[255,128,128];select: A and resno=83;spacefill 650;;select 84:A; color
[255,128,128];select: A and resno=84;spacefill 650;;select 85:A; color
[255,128,128];select: A and resno=85;spacefill 650;;");

        
        </script>
                
                <script>
              jmolRadioGroup([
                ["color ribbons none", null, "checked"],
                        "color ribbons structure",
                "color ribbons amino",
                        "color ribbons skyblue",
                        "color ribbons yellow"
                        ], "<br />");
            </script>

                <script>
              jmolCheckbox("wireframe on", "wireframe off", "wireframe
on/off", "checked");
            </script>

</form>
</BODY>
</HTML>
------------------------------------------------------------------------------

_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to