
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.jmol.org/index.php?action=history&amp;feed=atom&amp;title=Jmol_PHP</id>
	<title>Jmol PHP - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jmol.org/index.php?action=history&amp;feed=atom&amp;title=Jmol_PHP"/>
	<link rel="alternate" type="text/html" href="https://wiki.jmol.org/index.php?title=Jmol_PHP&amp;action=history"/>
	<updated>2026-06-13T01:49:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://wiki.jmol.org/index.php?title=Jmol_PHP&amp;diff=6988&amp;oldid=prev</id>
		<title>AngelHerraez: example of inline format</title>
		<link rel="alternate" type="text/html" href="https://wiki.jmol.org/index.php?title=Jmol_PHP&amp;diff=6988&amp;oldid=prev"/>
		<updated>2011-11-09T22:15:28Z</updated>

		<summary type="html">&lt;p&gt;example of inline format&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 22:15, 9 November 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l41&quot; &gt;Line 41:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Inline format==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Inline format==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Displays the Jmol applet inserted in the current page.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Displays the Jmol applet inserted in the current page.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Example:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;src=&amp;quot;http://chemapps.stolaf.edu/jmol/jmol.php?model=acetone&amp;amp;inline&amp;quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>AngelHerraez</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.jmol.org/index.php?title=Jmol_PHP&amp;diff=6975&amp;oldid=prev</id>
		<title>AngelHerraez: Jmol.php details moved to a new page</title>
		<link rel="alternate" type="text/html" href="https://wiki.jmol.org/index.php?title=Jmol_PHP&amp;diff=6975&amp;oldid=prev"/>
		<updated>2011-10-19T20:06:48Z</updated>

		<summary type="html">&lt;p&gt;Jmol.php details moved to a new page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Jmol.php: easy Jmol insertion into a web page=&lt;br /&gt;
You can insert a Jmol applet into a web page with nothing more than a simple &amp;lt;code&amp;gt;&amp;lt;script&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;a&amp;gt;&amp;lt;/code&amp;gt; tag. &lt;br /&gt;
You don't have to install any Jmol files in your computer or web server.&lt;br /&gt;
You don't even need a file with the 3D model; it will be automatically obtained from an appropriate web server.&lt;br /&gt;
&lt;br /&gt;
Note that this way of using Jmol is easily compatible with any environment where you do not control the full source code, like forums, blogs, wikis, content management systems, e-learning environments...&lt;br /&gt;
In fact, you can email the address and the recipient will see the Jmol applet by clicking on the received link.&lt;br /&gt;
&lt;br /&gt;
If you invoke a PDB 4-character id, the model will be retrieved from the [http://www.pdb.org/ wwPDB (RCSB)]. If you invoke a chemical name, commercial name, SMILES string, InChI key, or CAS registry number, the model will be retrieved from the [http://cactus.nci.nih.gov/chemical/structure CACTVS server (NIH)].&lt;br /&gt;
&lt;br /&gt;
==General syntax==&lt;br /&gt;
You must link to this page&lt;br /&gt;
 http://chemapps.stolaf.edu/jmol/jmol.php&lt;br /&gt;
which does all the magic (a courtesy of Bob Hanson and the servers at St. Olaf College). &lt;br /&gt;
After that URL, text must be added to specify the molecule and some options. Such a text must follow the conventions for URIs, that is:&lt;br /&gt;
* first goes a &amp;lt;code&amp;gt;?&amp;lt;/code&amp;gt; sign&lt;br /&gt;
* then, pairs of name=value&lt;br /&gt;
* if more than one name/value pair, they must be separated by an ampersand, &amp;lt;code&amp;gt;&amp;amp;&amp;lt;/code&amp;gt; sign&lt;br /&gt;
&lt;br /&gt;
==Common options==&lt;br /&gt;
One option among 1 to 3 is needed to define the molecule or model that will be displayed. The others are elective and affect the style of the applet or the model inside it.&lt;br /&gt;
# &amp;lt;code&amp;gt;source=&amp;lt;/code&amp;gt;... the file source of a model, starting with &amp;lt;code&amp;gt;http://&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;model=&amp;lt;/code&amp;gt;...  a name of a chemical, or SMILES string, InChI key, or CAS registry number.&lt;br /&gt;
# &amp;lt;code&amp;gt;pdbid=&amp;lt;/code&amp;gt;... the 4-character ID of the model at the Protein Data Bank (RCSB, wwPDB).&lt;br /&gt;
* &amp;lt;code&amp;gt;inline&amp;lt;/code&amp;gt; a return JavaScript to create the applet in the current page.&lt;br /&gt;
* &amp;lt;code&amp;gt;link=&amp;lt;/code&amp;gt;... a text to make the hyperlink to a popup window.&lt;br /&gt;
* &amp;lt;code&amp;gt;script=&amp;lt;/code&amp;gt;... a Jmol script (should be simple).&lt;br /&gt;
* &amp;lt;code&amp;gt;scriptvar=&amp;lt;/code&amp;gt;... a previously defined JavaScript variable name or function (not the script itself; only with &amp;lt;code&amp;gt;inline&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;lt;code&amp;gt;width=&amp;lt;/code&amp;gt;... the width of the applet, either in pixels or in percent.&lt;br /&gt;
* &amp;lt;code&amp;gt;height=&amp;lt;/code&amp;gt;... the height of the applet, either in pixels or in percent.&lt;br /&gt;
* &amp;lt;code&amp;gt;caption=&amp;lt;/code&amp;gt;... a caption (only for the anchor type, not with &amp;lt;code&amp;gt;inline&amp;lt;/code&amp;gt; and not with &amp;lt;code&amp;gt;link&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;lt;code&amp;gt;title=&amp;lt;/code&amp;gt;... a title (not with &amp;lt;code&amp;gt;inline&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
==Anchor format==&lt;br /&gt;
Creates a link to a new page with the model in Jmol. &lt;br /&gt;
(You can specify the target in the &amp;lt;code&amp;gt;&amp;lt;a&amp;gt;&amp;lt;/code&amp;gt; tag, so that the page either replaces the current one or opens in a new window or tab in the browser)&lt;br /&gt;
&lt;br /&gt;
==Popup format==&lt;br /&gt;
Creates a link to pop up a new window of a specified size, containing the Jmol applet with the model.&lt;br /&gt;
&lt;br /&gt;
==Inline format==&lt;br /&gt;
Displays the Jmol applet inserted in the current page.&lt;/div&gt;</summary>
		<author><name>AngelHerraez</name></author>
		
	</entry>
</feed>