Difference between revisions of "ExportToWeb"
AngelHerraez (talk | contribs) (→Newer Jmol versions) |
AngelHerraez (talk | contribs) (file setup for Export to Web) |
||
Line 17: | Line 17: | ||
[[File:File_set_minimal.png]] | [[File:File_set_minimal.png]] | ||
+ | |||
+ | Then, in the Export to Web dialog, under "Relative server path..." and "Relative local path..." you should enter the path to this {{folder|jsmol}} folder starting from the folder where you are saving your webpage (html file). | ||
+ | |||
+ | Note the location of {{folder|jsmol}} in your local disk (for page testing) and in your web server (for visitors of your pages) need not be the same; that's why the dialog has two separate lines. | ||
== Former Jmol versions == | == Former Jmol versions == |
Revision as of 13:23, 4 May 2016
Jmol Export to Web application
"Export to Web" (a.k.a. Jmol Web Page Maker) is a module included in the Jmol Application. Its purpose is to offer a user-friendly, basic, easy to learn way of producing simple webpages that include Jmol Applets with molecular views that the user has prepared but still retain full-featured Jmol interactivity.
Newer Jmol versions
Due to changes in the distribution file scheme in Jmol v. 13.2 and later (associated to the evolution towards Jmol-JSO and JSmol), you need to do some extra preparation before E2W will work successfully.
- Create a folder where you will work with E2W.
- Download the distribution file, Jmol-14.x.x-binary.zip and extract its contents: a jmol-14.x.x folder will be created by default.
- Unzip the jsmol.zip; it will create a jsmol folder with several folders inside.
- Go to your working folder, launch Jmol.jar and then you can load models and open the Export to Web module.
Note: not all contents of jsmol are needed; you must keep JSmol.min.js and all the other .js files, but among the subfolders, you can keep just idioma, java, j2s and php.
Then, in the Export to Web dialog, under "Relative server path..." and "Relative local path..." you should enter the path to this jsmol folder starting from the folder where you are saving your webpage (html file).
Note the location of jsmol in your local disk (for page testing) and in your web server (for visitors of your pages) need not be the same; that's why the dialog has two separate lines.
Former Jmol versions
With Jmol versions before 13.2, the use of E2W is described in Jonathan Gutow's tutorial in English (y en español).
Make sure to extract (unzip) the whole contents of the downloaded Jmol distribution file, and to work with the Jmol.jar in that folder.