Or upload any other structure file(s) you want. Now click on Molecule page (the content type we just created).Įnter a name for this page in the Molecule field on top and upload the two file included in this module's files/ folder, these are 1crn.pdb and helix.pdb. Go to Administration > Content and click on Add content. Adding a webpage with the new content type Once the file field has been added, proceed then as above to present the uploaded file as a Jmol applet. Instead of creating a new content type you can also add a file upload field to an existing content type, such as "Basic page". Modifying an existing content type to add a file upload field
Then don't forget to press Save on the Molecule page. Now you can customize the appearance and options of the Jmol applet as it will appear on your web pages. See figure below.Ĭlick the cog wheel on the right to open the formatter settings form. For the Structure file field choose Jmol applet in the Format column. Now click on the Manage display tab on top. I also want to be able to upload multiple files per page so I set Number of values to Unlimited. Jmol is a 3D molecular viewer program that using javascript and here is a more detailed explanation for. xyz structure files, I type the extensions in the box (see figure). I have a java applet that I need to embed in a web page. You definately need to change the Allowed file extensions otherwise you will only be able to upload. In the next page you can configure this file upload field. In the next page leave the Field Settings as they are and click Save field settings. Structure file) and select File in the Field type column. On the next page (see figure below) we will add a field to upload a file anytime we create a webpage of this content type. Then click on Save and add fields at the bottom. Molecule page and Molecules as in the figure below. In the next window you can set some descriptions for this new content type. Go to Administration > Structure > Content types and click Add content type as in the figure below.
Uploading a file can be done with a content type that allows file uploading. The idea of the Jmol formatter module is that an uploaded molecular structure file is displayed in a Jmol applet. Creating a new content type with a file upload field Enable the Jmol module in Administration > Modules and if you don't receive an error message, everything is correctly installed. Now proceed by unzipping the Jmol module file into sites/all/modules or your own custom module folder. If the folder sites/all/libraries/jmol doesn't exist, create it.
The content of the zip file should be extracted in your Drupal installatin folder under sites/all/libraries/jmol in such a way that you have the file sites/all/libraries/jmol/Jmol.js. (The container div must have explicit width and height.) Uses jQuery basic library, e.g. If the applet is given a 100 size, this makes an applet that may be resized at will by the user.
Installing the external Jmol libraryįor the module to work, you need to download and unzip the external Jmol library. The Jmol applet may be inserted in a div that receives jQuery resizable attribute. Pelase can anyone give me suggession about this thing.This document is under construction and is meant to be a documentation page for the Jmol module.
While using this code it shows only the last value of that particular for loop value, other wise the value itself not displaying.
I am doing my work in jmol,i am using jmol applet tags with perl programming so while using jmol with in for loop it creats som problem, i don't know how to clear those problems.