Page 3: Using Tables to Display Embedded Jmol Images
and Using Control Elements to Modify Jmol Images

[Home] [Page 1] [Page 2] [Page 3] [Page 4] [Page 5] [Page 6] [Page 7]


Tables

Tables can be used to lay out objects on a page. Below is an example for using a 2-column, 1-row table to display a Jmol image along with text:

Structure of 3-isopropylmalate dehydrogenase in complex with 3-isopropylmalate at 2.0 A resolution: the role of Glu88 in the unique substrate-recognition mechanism.

Imada K, Inagaki K, Matsunami H, Kawaguchi H, Tanaka H, Tanaka N, Namba K.

International Institute for Advanced Research, Matsushita Electric Industrial Co., Ltd., Seika, Japan. kimada@npn.jst.go.jp

BACKGROUND: 3-Isopropylmalate dehydrogenase (IPMDH) and isocitrate dehydrogenase (ICDH) belong to a unique family of bifunctional decarboxylatingsdehydrogenases. Although the ICDH dimer catalyzes its reaction under a closed conformation, known structures of the IPMDH dimer (without substrate) adopt as fully open or a partially closed form. Considering the similarity in the catalytic mechanism, the IPMDH dimer must be in a fully closed conformation during this reaction. A large conformational change should therefore occur upon substrate binding.


To insert a table:


  • In this example, the left-hand cell was used to hold the Jmol image. This was done by dragging a JavaScript icon the Basic tab of the Objects pallet, just as was done on Page 2 of this tutorial. To make this work, the page also requires the JavaScript icon in the <HEAD> region of the page, which points to the Jmol.js file, and the JavaScript icon at the top of the <BODY> region of the page, which contains the jmolInitialize function that provides the path to the location of the jmolApplet#.jar files in the web site.

Buttons and other Control Elements to Modify Jmol Images

Buttons and other control elements can be used to send RasMol script commands to embed Jmol images. The Jmol.js library contains functions for embedding control elements. A description of the functions contained in the Jmol.js library can be found here. Below are some examples of some of the control elements included in the Jmol.js library:

Button:

Checkbox:

Radio button group:

Menu:
color by


Creating Jmol buttons and other control elements works similarly to creating a Jmol image; drag a JavaScript icon from the Basic tab of the Object pallet to the location where you want the control element located, then enter the JavaScript function from the Jmol.js library that will produce the desired control element.

  • Below is a figure showing the layout used to produce the table shown above, which contains the Jmol image and control elements. To produce this table, all of content of the page was placed within form tags, which are represented by the large box with the little F in its upper left-hand corner. The Jmol.js library functions associated with each of the JavaScript icons can be viewed by placing the cursor over each of the JavaScript icons.
jmolInitialize("..")
jmolButton("RasMol script","Button label")
jmolApplet(size,"RasMol script")
jmolCheckbox("RasMol script when checked",
"RasMol script when unchecked",
"Label for checkbox")
jmolRadioGroup([
["RasMol script for 1st Item","Label for 1st item","isChecked"],
["RasMol script for 2nd Item","Label for 2nd item"],
["RasMol script for 3rd Item","Label for 3rd item"],
[...]],
"<br>")
jmolMenu([
["RasMol script for 1st Item","Label for 1st item","isChecked"],
["RasMol script for 2nd Item","Label for 2nd item"],
["RasMol script for 3rd Item","Label for 3rd item"],
[...]],
number of items displayed)

Resource for Button Scripts

And excellent resource for learning Rasmol script commands is the Online Macromolecular Museum Site, which was created by David Marcey at California Lutheran University. This site contains, among other things, examples of buttons along with the scripts that they execute. Many of the exhibits at the Online Macromolecular Museum Site still use the Chime plugin; for these you will need to use a Netscape 4.x browser the the Chime plugin installed. Below are a couple of links to exhibits in the museum, which use Jmol:


[Home] [Page 1] [Page 2] [Page 3] [Page 4] [Page 5] [Page 6] [Page 7]