
<?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_JavaScript_Object%2FInstallation</id>
	<title>Jmol JavaScript Object/Installation - 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_JavaScript_Object%2FInstallation"/>
	<link rel="alternate" type="text/html" href="https://wiki.jmol.org/index.php?title=Jmol_JavaScript_Object/Installation&amp;action=history"/>
	<updated>2026-04-28T16:59:57Z</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_JavaScript_Object/Installation&amp;diff=10441&amp;oldid=prev</id>
		<title>AngelHerraez: /* Access to local files */</title>
		<link rel="alternate" type="text/html" href="https://wiki.jmol.org/index.php?title=Jmol_JavaScript_Object/Installation&amp;diff=10441&amp;oldid=prev"/>
		<updated>2025-08-12T11:31:20Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Access to local files&lt;/span&gt;&lt;/span&gt;&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 11:31, 12 August 2025&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-l56&quot; &gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&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;/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;/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;If you want to load your pages '''from local disk''', some limitations apply depending on the browser. Please see  &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;If you want to load your pages '''from local disk''', some limitations apply depending on the browser. Please see  &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;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Troubleshooting/Local Files]].&lt;/div&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;[[Troubleshooting/Local Files&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] and [[JSmol Deployment Local&lt;/ins&gt;]].&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;/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;/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;=== Chrome/Windows ===&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;=== Chrome/Windows ===&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;/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;/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;'''Saving files''' from JSmol/HTML5 will work without accessing {{file|jsmol.php}} file, but any filename and extension that was provided by script will be zapped by Chrome, which insists on offering to save the file with the name &amp;quot;download.txt&amp;quot;.&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;'''Saving files''' from JSmol/HTML5 will work without accessing {{file|jsmol.php}} file, but any filename and extension that was provided by script will be zapped by Chrome, which insists on offering to save the file with the name &amp;quot;download.txt&amp;quot;.&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_JavaScript_Object/Installation&amp;diff=10236&amp;oldid=prev</id>
		<title>AngelHerraez: moving to this new independent page what was a section in Jmol_JavaScript_Object and updating info for Jmol 16</title>
		<link rel="alternate" type="text/html" href="https://wiki.jmol.org/index.php?title=Jmol_JavaScript_Object/Installation&amp;diff=10236&amp;oldid=prev"/>
		<updated>2024-04-18T15:58:07Z</updated>

		<summary type="html">&lt;p&gt;moving to this new independent page what was a section in Jmol_JavaScript_Object and updating info for Jmol 16&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Installation of JSmol=&lt;br /&gt;
&lt;br /&gt;
:''The Jmol team appreciates all feedback from web page developers and makes every effort to keep the files up to date. Please file a [http://sourceforge.net/tracker/?atid=379133&amp;amp;group_id=23629&amp;amp;func=browse bug report] if you find a problem.'' &lt;br /&gt;
&lt;br /&gt;
==Getting the Files==&lt;br /&gt;
JSmol (usual name for the ''Jmol JavaScript Object'') is included as part of the Jmol package.&lt;br /&gt;
Full releases of J(S)mol may be obtained at [http://sourceforge.net/projects/jmol/files/ the Jmol Project page]. &lt;br /&gt;
&lt;br /&gt;
The distribution is a zipfile, {{file|Jmol-xxx.zip}}, that contains {{file|Jmol.jar}} (the Jmol application) and a {{file|jsmol.zip}} file which in turn contains the whole set of files potentially needed for deploying JSmol in a webpage. Note that usually you don't need the full set of files for operation, as described below.&lt;br /&gt;
&lt;br /&gt;
===In summary===&lt;br /&gt;
* For pages that use the HTML5 modality of JSmol, you just need {{file|JSmol.min.js}} and {{folder|j2s}} (A total of about 36 MB, but only those parts actually needed in each occasion will be downloaded to the client computer).&lt;br /&gt;
* {{folder|js}} is only important if you want to experiment with the code (advanced).&lt;br /&gt;
&lt;br /&gt;
===In detail===&lt;br /&gt;
{{file|jsmol.zip}} (which is included inside the Jmol distribution zip file) contains a {{file|jsmol_dev.htm}} file which is a test an demo page, and a {{folder|jsmol}} folder which holds all these files and folders:&lt;br /&gt;
&lt;br /&gt;
* Major files:&lt;br /&gt;
** {{file|JSmol.min.js}} The only library that needs to be called explictly; it will take care of calling any of the other files as needed. (This includes a set of files minimized using the Google Closure Compiler)&lt;br /&gt;
*** {{file|JSmol.min.nojq.js}} An alternative version, to be used if you are not loading binary files and you already use jQuery on your page; this one bypasses the {{file|JSmoljQuery.js}} internal component. &amp;lt;!--''Note'': if you use this, you might need to also include in your page a call to the jQuery-UI library.--&amp;gt;&lt;br /&gt;
** {{file|JSmol.lite.js}} is a lightweight version of JSmol that will load very fast and offers minimal functionality (just a simplified ball and stick rendering, no scripting). It is specially aimed at phones and systems with limited power, or as a quick first-look option that may be programmatically replaced by a full JSmol at user request.&lt;br /&gt;
*** {{file|JSmol.lite.nojq.js}} An equivalent version that does not include jQuery (useful if you are already using jQuery in your page).&lt;br /&gt;
** {{file|JSmol.GLmol.min.js}} is a supplementary library addressed at using a [[Jmol_JavaScript_Object/WebGL|WebGL modality]] of the Jmol Object. Note that this does not support the full functionality of Jmol and is not under active development.&lt;br /&gt;
&lt;br /&gt;
* {{folder|php}}&lt;br /&gt;
** {{file|jsmol.php}} or {{file|jsmol2.php}} A server-side PHP utility that allows a number of functions that can increase the platform and browser compatibility of JSmol. By default, JSmol will try to use a copy of this file at the St.Olaf server, but you need to put a copy in your own server in order to get full cross-platform compatibility in the following areas:&lt;br /&gt;
*** saving images (JPG, PNG) and binary Jmol states (JMOL, PNGJ, ZIP)&lt;br /&gt;
*** retrieving RCSB REST XML data services (&amp;quot;load =xxxxxxx?&amp;quot;)&lt;br /&gt;
*** enabling cross-platform AJAX in MSIE (RCSB, NCI, PubChem)&lt;br /&gt;
*** reading binary files synchronously (as in the &amp;lt;code&amp;gt;load&amp;lt;/code&amp;gt; command, or when using &amp;lt;code&amp;gt;var x = load(...)&amp;lt;/code&amp;gt; in a Jmol script) in some browsers.&lt;br /&gt;
:: ''Details'': jsmol.php will be called if you request a binary format file (gz, zip, pse, etc.) from Safari, Chrome, or MSIE. Those browsers can't transfer that sort of file directly and need a server-side piece. But they will have to have that on your server (the same where the webpage is). &lt;br /&gt;
:: In addition, jsmol.php processes image creation requests and &amp;quot;turns around&amp;quot; binary data such as {{file|.jpg}} and {{file|.zip}} files created by JSmol on the page and simply returns it. For this functionality, jsmol.php could be anywhere, including the default location at StOlaf.&lt;br /&gt;
&lt;br /&gt;
* {{folder|j2s}} The suite of JavaScript libraries needed for JSmol/HTML5 modality.&lt;br /&gt;
* {{folder|js}} Non-packed copies of JavaScript libraries needed for JSmol (most of these files are already included in packed form within {{file|JSmol.min.js}}, see above):&lt;br /&gt;
** {{file|j2sjmol.js}} Required interface to the Jmol and java classes (translated into JavaScript and compressed using the Google Closure Compiler.)&lt;br /&gt;
** {{file|JSmol.js}} Primary JSmol library, with private methods for creating and interacting with canvases&lt;br /&gt;
** {{file|JSmolApi.js}} All public user-intended interface functions&lt;br /&gt;
** {{file|JSmolApplet.js}} Required applet prototypes for use with Java or HTML5&lt;br /&gt;
** {{file|JSmolControls.js}} Required only if any buttons or links or other input methods will be used&lt;br /&gt;
** {{file|JSmolCore.js}} Primary JSmol library, with private methods for file loading, primarily&lt;br /&gt;
&amp;lt;!--** {{file|JSmoljQuery.js}} A version of jQuery tweaked to allow synchronous binary file transfer and use with MSIE and Safari--&amp;gt;&lt;br /&gt;
** {{file|JSmolJSV.js}} Needed only for [[Jmol_JavaScript_Object/JSV|using the JSpecView object]]&lt;br /&gt;
** ...and others (undocumented)&lt;br /&gt;
** {{folder|core}}  (undocumented)&lt;br /&gt;
* Some tens of sample pages (htm files) included for your convenience but not required for functionality; among them:&lt;br /&gt;
** {{file|supersimple.htm}}, {{file|simple.htm}}, {{file|jsmol.htm}}, {{file|test2.htm}}, {{file|test3.htm}} , and {{file|cover.htm}} are demonstration/example pages &lt;br /&gt;
** {{folder|data}}, {{folder|images}} contain files used by the above demo pages&lt;br /&gt;
* {{folder|flot}}, {{folder|jcse}}, {{folder|jsme}}, etc. are for specific applications (advanced)&lt;br /&gt;
&lt;br /&gt;
: Note: The {{folder|applet}} folder has been removed from the distribution since the use of Java applets  long deprecated in web browsers.&lt;br /&gt;
&lt;br /&gt;
== Specific browser considerations ==&lt;br /&gt;
&lt;br /&gt;
=== Access to local files ===&lt;br /&gt;
&lt;br /&gt;
If you want to load your pages '''from local disk''', some limitations apply depending on the browser. Please see &lt;br /&gt;
[[Troubleshooting/Local Files]].&lt;br /&gt;
&lt;br /&gt;
=== Chrome/Windows ===&lt;br /&gt;
&lt;br /&gt;
'''Saving files''' from JSmol/HTML5 will work without accessing {{file|jsmol.php}} file, but any filename and extension that was provided by script will be zapped by Chrome, which insists on offering to save the file with the name &amp;quot;download.txt&amp;quot;.&lt;/div&gt;</summary>
		<author><name>AngelHerraez</name></author>
		
	</entry>
</feed>