MathJax - File failed to load: /extensions/MathZoom.js

972 views
Skip to first unread message

Flávio Oliveira

unread,
Mar 13, 2012, 2:42:22 PM3/13/12
to mathja...@googlegroups.com

i've decided to use mathjax in one of my web projects and i'm getting a issue that i cannot understand.

First point: i've created my own CDN website where i've istalled the 2.0 version of mathjax on some url like: "http://mathjax.example.com".

my webapplication is developed in wep.net mvc3+razor and before i've decided to create a cdn website, i was using the standard script an it was working perfectlly: <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/1.1-latest/MathJax.js"></script>

But, external CDN does not serve my client purposes, and for that reason i've to create a cdn website on the same server.

Well i've downloaded the zip file and installed on a directory served on my webserver.

my problem is that if i point the old url to the new: it does not works, and at the end i've a message on my lower left browser corner "File failed to load: /extensions/MathZoom.js"

is that necessary some configuration somewhere?

Davide P. Cervone

unread,
Mar 14, 2012, 8:37:05 AM3/14/12
to mathja...@googlegroups.com
> First point: i've created my own CDN website where i've istalled the
> 2.0 version of mathjax on some url like: "http://mathjax.example.com".
>
So if I understand you correctly, you have placed the MathJax files at
the root of this address. I.e., you are loading MathJax as

<script src="http://mathjax.example.com/MathJax.js"></script>

right? An you have placed MathJax.js, the fonts directory, the jax
directory, and the extensions directory at the top level as well, right?

> my problem is that if i point the old url to the new: it does not
> works, and at the end i've a message on my lower left browser corner
> "File failed to load: /extensions/MathZoom.js"
>

It looks like MathJax may not be determining the root directory for
the MathJax distribution properly. Can you send the actual <script>
tag that you are using to load MathJax.js?

You could add

<script>
alert(MathJax.Hub.config.root);
</script>

to your page after MathJax.js is loaded and see what it displays. It
should be "http://mathjax.example.com/MathJax.js" if you used the
<script> tag I list above.

If you can give a more complete example of a file that is failing, and
a more complete description of the directory structure of your
mathjax.example.com site, we may be able to spot the problem.

Davide

Reply all
Reply to author
Forward
0 new messages