Yes, it's this line in JSmol.full.js:
var isLocal = (isFile || ref.indexOf("http://localhost") == 0 ||
href.indexOf("http://127.") == 0);
That should read
var isLocal = (isFile || ref.indexOf("http://localhost") == 0 ||
ref.indexOf("http://127.") == 0);
On Sat, Feb 8, 2014 at 12:41 PM, Robert Hanson <hans...@stolaf.edu> wrote:
> OK, that's probably my recent attempt to exclude localhost from the
> tracker....
>
>
> On Fri, Feb 7, 2014 at 5:39 PM, Angel Herráez <angel.herr...@uah.es>wrote:
>
>> I just started using 14.1.8 in a page and I have a strange error:
>>
>> - when page is local (file:// ), JSmol loads fine the model + script
>> - when I load via local webserver (http://127.0.0.1/ ...), I get this
>> error on page
>> load:
>>
>> Error: ReferenceError: href is not defined
>> Archivo de origen: http://127.0.0.1/biomodel/JSmol/JSmol.min.js
>> Línea: 190
>>
>> both in default Html5 mode and with ?_USE=java in the url
>>
>> I've often had trouble with local files that got fixed when run from
>> server, but
>> this is new, the other way round!
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> 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
> 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
>
>
--
Robert M. Hanson
Larson-Anderson Professor 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
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users