Please do give that a try and report back if the "syntax error" message
disappear. I had never made the connection that those were only when
loading local files.

On Wed, Dec 16, 2015 at 4:43 PM, Eric Martz <ema...@microbio.umass.edu>
wrote:

> Rolf, Bob and everyone, I, too, have noticed these numerous error messages
> in Firefox when running from local files in OS X. Since everything seemed
> to work, I didn't worry about them much. But it would be nice to eliminate
> them so it would be easier to find the errors that matter.
>
> Thanks, Eric
>
>
>
>
> On 12/16/15 4:00 PM, Robert Hanson wrote:
>
> Ho, ho. What luck. A little web digging turned up the solution.
>
> Add this to your page:
>
> $.ajaxSetup({ mimeType: "text/plain" });
>
>
> I will get that into JSmol.
>
> Bob
>
>
> On Wed, Dec 16, 2015 at 11:46 AM, Rolf Huehne <rhue...@leibniz-fli.de>
> wrote:
>
>> Hi all,
>>
>> with JSmol/HTML5 I get a lot of Javascript error messages in Firefox 42
>> on Linux if I load the page locally from the file system. The error
>> messages don't occur in Chromium 31 or if the page is loaded from a web
>> server.
>>
>> Although JSmol still seems to work properly it seems especially strange
>> to me that there are not only error messages for JSmol Javascript files
>> but also for script files and data files loaded into JSmol (original
>> path names are shortened):
>>
>> ====== Script and data file error messages ======================
>> Error: not well-formed
>> Source File: file:///jmol-14.4.1_2015.12.15/start_script.txt
>> Line: 1, Column: 2
>> Source Code:
>> # ### REQUIRES Jmol 14.3.16_2015.09.22 or later ###
>> -------------------------------
>> Error: syntax error
>> Source File: file:///jmol-14.4.1_2015.12.15/load_script.txt
>> Line: 1, Column: 1
>> Source Code:
>> set windowCentered on;
>> -------------------------------
>> Error: syntax error
>> Source File: file: annotations_1.txt
>> Line: 1, Column: 1
>> Source Code:
>> observation_id entry_id entry_type entry_name species
>> -------------------------------
>>
>>
>> ====== JSmol file error messages  =============================
>> Error: syntax error
>> Source File:
>> file:///jmol-14.4.1_2015.12.15/jsmol/j2s/JV/OutputManagerJS.js
>> Line: 1, Column: 1
>> Source Code:
>> Clazz.declarePackage ("JV");
>> -------------------------------
>> Error: syntax error
>> Source File: file:///jmol-14.4.1_2015.12.15/jsmol/j2s/JV/OutputManager.js
>> Line: 1, Column: 1
>> Source Code:
>> Clazz.declarePackage ("JV");
>> -------------------------------
>> Error: syntax error
>> Source File:
>> file:///jmol-14.4.1_2015.12.15/jsmol/j2s/core/corescriptcmd.z.js
>> Line: 1, Column: 1
>> Source Code:
>>
>> (function(X,Y,Z,$,aa,M,H,N,P,Q,I,R,S,ba,L,D,T,K,U,ca,V,da,ea,fa,ga,ha,ia,ja,ka,y,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,l,W){M("JS");c$=Q(function(){this.e=this.vwr=null;this.chk=!1;
>> this.st
>> =null;this.slen=0;P(this,arguments)},JS,"ScriptExt");l(c$,"init",function(a){this.e=a;this.vwr=this.e.vwr;return
>> this},"~O");l(c$,"atomExpressionAt",function(a){return
>>
>> this.e.atomExpressionAt(a)},"~N");l(c$,"checkLength",function(a){this.e.checkLength(a)},"~N");l(c$,"error",
>> -------------------------------
>> Error: syntax error
>> Source File:
>>
>> file:///jmol-14.4.1_2015.12.15/jsmol/j2s/J/adapter/readers/cif/MMCifReader.js
>> Line: 1, Column: 1
>> Source Code:
>> Clazz.declarePackage ("J.adapter.readers.cif");
>> -------------------------------
>> Timestamp: 12/16/2015 03:41:53 PM
>> Error: syntax error
>> Source File:
>>
>> file:///jmol-14.4.1_2015.12.15/jsmol/j2s/J/adapter/readers/cif/CifReader.js
>> Line: 1, Column: 1
>> Source Code:
>> Clazz.declarePackage ("J.adapter.readers.cif");
>> -------------------------------
>> Error: syntax error
>> Source File: file:///jmol-14.4.1_2015.12.15/jsmol/j2s/JU/CifDataParser.js
>> Line: 1, Column: 1
>> Source Code:
>> Clazz.declarePackage ("JU");
>> -------------------------------
>> Error: syntax error
>> Source File:
>> file:///jmol-14.4.1_2015.12.15/jsmol/j2s/J/render/MeshRenderer.js
>> Line: 1, Column: 1
>> Source Code:
>> Clazz.declarePackage ("J.render");
>> -------------------------------
>> Error: syntax error
>> Source File: file:///jmol-14.4.1_2015.12.15/jsmol/j2s/J/shape/Halos.js
>> Line: 1, Column: 1
>> Source Code:
>> Clazz.declarePackage ("J.shape");
>> -------------------------------
>> Error: syntax error
>> Source File:
>> file:///jmol-14.4.1_2015.12.15/jsmol/j2s/J/render/HalosRenderer.js
>> Line: 1, Column: 1
>> Source Code:
>> Clazz.declarePackage ("J.render");
>> -------------------------------
>> Error: syntax error
>> Source File:
>> file:///jmol-14.4.1_2015.12.15/jsmol/j2s/J/g3d/CircleRenderer.js
>> Line: 1, Column: 1
>> Source Code:
>> Clazz.declarePackage ("J.g3d");
>> -------------------------------
>> Error: syntax error
>> Source File:
>> file:///jmol-14.4.1_2015.12.15/jsmol/j2s/J/thread/MoveToThread.js
>> Line: 1, Column: 1
>> Source Code:
>> Clazz.declarePackage ("J.thread");
>> -------------------------------
>>
>> Regards,
>> Rolf
>>
>>
>> --
>>
>> Rolf Huehne
>> Postdoc
>>
>> Leibniz Institute on Aging - Fritz Lipmann Institute (FLI)
>> Beutenbergstrasse 11
>> 07745 Jena, Germany
>>
>> Phone:   +49 3641 65 6205
>> Fax:     +49 3641 65 6210
>> E-Mail:  rhue...@leibniz-fli.de
>> Website: http://www.leibniz-fli.de
>>
>>            Scientific Director: Prof. Dr. K. Lenhard Rudolph
>>         Head of Administration: Dr. Daniele Barthel
>> Chairman of Board of Trustees: Burkhard Zinner
>>
>> VAT No: DE 153 925 464
>> Register of Associations: No. 230296, Amtsgericht Jena
>> Tax Number: 162/141/08228
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Department of Chemistry
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
>
>
> If nature does not answer first what we want,
> it is better to take what answer we get.
>
> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Jmol-users mailing 
> listJmol-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to