How to Show a Molecule using FirstGlance in Jmol from Your Website How Specify a PDB Identification Code in a Hyperlink to FirstGlance How to load a molecule from any server into FirstGlance Linking to a Mirror Site Advanced options/Query parameters

How Specify a PDB Identification Code in a Hyperlink to FirstGlance
This help is for people who already know how to make a web page that includes hyperlinks.
Specify the PDB identification code in place of 1d66 in this example:
<a href="http://firstglance.jmol.org/fg.htm?mol=1d66" target=_blank>View 1d66</a>
Try it: View 1d66
Using target=_blank is strongly recommended because it opens a new window or tab (depending on the browser and its configuration) for FirstGlance, leaving the page containing the link(s) to FirstGlance available behind the new window.

How to load a molecule from any server into FirstGlance
Replace the PDB identification code, in the above example, with the entire URL to the desired PDB file. For example, under Toxins in the Atlas of Macromolecules you can find a model for the heptamer of anthrax protective antigen, available from
http://molvis.sdsc.edu/pdb/1acchept.pdb
This URL can be specified after ?mol= in the link to FirstGlance, but the colon (:) must be "escaped" to %3A. Thus, the link would be
<a href="http://firstglance.jmol.org/fg.htm?mol=http%3A//molvis.sdsc.edu/pdb/1acchept.pdb"
target=_blank>Anthrax Protective Antigen Heptamer</a>
Try it: Anthrax Protective Antigen Heptamer
For more technical information, please see PDB Data File Access Methods Employed by FirstGlance.

Linking to a Mirror Site
If you are located outside the USA, and you get consistently faster display of the molecule from a FirstGlance Mirror Site, you can use the mirror URL for your links by replacing "firstglance.jmol.org" (in the examples above) by your preferred mirror URL.

Advanced Options/Query Parameters
By default, FirstGlance uses JSmol, which does not require Java. For large molecules or smoother rotation, use Java by adding this query parameter to the URL:

- The Jmol Java applet is requested with &JAVA (or &SIGNED).

Do not use &JAVA in a link since the most popular browsers do not support Java.
Advanced options (available from the main page with the Advanced Options link) can be specified in hyperlinks. These options should generally be unnecessary. If you think you need one of these options, please contact
to discuss whether it is, indeed, necessary.

- Reporting of elapsed time is turned on with &elapsed=1&
- Debugging mode is turned on with &db=1&
- mmCIF format atomic coordinate files are requested with &cif=1& (FirstGlance has not yet been adapted to work with cif files).

For example, to invoke FirstGlance using JSmol (no Java), regardless of any preference setting, in debugging mode, the hyperlink would be:
<a href="http://firstglance.jmol.org/fg.htm?mol=1d66&nojava&db=1" target=_blank>View
1d66 using no Java (using JSmol), in debugging mode</a>
Try it: View 1d66 using no Java (using JSmol), in debugging mode.
Browser Spoofing: For test purposes, FirstGlance can be told to behave as if a specified browser were in use, regardless of the actual browser employed. This is done with a "&spoof=browsername" query parameter, where browsername is one of chrome, edge, ie, firefox, opera, safari, or maxthon. These query parameters do not cause the browser to behave like a different browser -- they affect only FirstGlance. Links that use these query parameters to display 1d66 are provided in the Updated section for version 2.4 in versions.htm.

Feedback to