Loading jsMath in Google Chrome

274 views
Skip to first unread message

Bill

unread,
Aug 19, 2010, 2:49:36 AM8/19/10
to TiddlyWiki
Hi,

I am using TW 2.6 with jsMath without any modification to the plugin
(http://bob.mcelrath.org/tiddlyjsmath.html) or the jsMath package
(3.6e). It has been working well in Firefox. But when I try Google
Chrome, there is a javascript warning during loading:

jsMath was not found: you must place the 'jsMath' directory in the
same place as this file. The error was: NETWORK_ERR: NETWORK_ERR:
XMLHttpRequest Exception 101.

And then the jsMath is just not loaded. The jsMath directory is in the
right place as the Firefox find it without problem. Did anyone
encounter that issue before?

Bill

KM Tu

unread,
Jun 24, 2011, 3:21:10 PM6/24/11
to tiddl...@googlegroups.com
I am new to TW, and I got the same problem, too.

I am using a Mac. Either Firefox or Safari can load the plugin successfully, except Chrome.
I have tried the stable version (12.0.742.100) and canary version (14.0.802.0), both failed.

Yakov

unread,
Jun 25, 2011, 2:17:53 AM6/25/11
to TiddlyWiki
A similar problem arises in Opera. jsMath is not loaded and, moreover,
the entire TW is not loaded correctly. However, if TW is viewed
through http, everything is ok (you can try this as well by opening
[1] or using Dropbox or another such service to view your own document
through http). The fact that an error occurs with the XMLHttpRequest
points that there probably are problems with the plugin (when you use
TW localy, there shouldn't be any http requests, right?). But I may be
wrong.

[1] http://bob.mcelrath.org/tiddlyjsmath-2.0.3.html

TuTu

unread,
Jun 25, 2011, 2:23:36 AM6/25/11
to tiddl...@googlegroups.com
Interesting, indeed, I used Chrome and read my TW through http with Dropbox, and there was no problem loading the jsMath plugin.
"However, if TW is viewed through http, everything is ok (you can try this as well by opening [1] or using Dropbox..."

Yakov

unread,
Jun 25, 2011, 3:04:46 AM6/25/11
to TiddlyWiki
The plugin is not huge, but I'm not very good at JS. I can see a very
strange line (3)

if(typeof(window["ajax"]) == "undefined") {

which should probably be

if(typeof(window["ajax"]) === undefined) {

At least, after such a correction my TW opened properly in Opera, but
jsMath still doesn't work. May be someone among developers can help?

Yakov

unread,
Jun 25, 2011, 3:12:19 AM6/25/11
to TiddlyWiki
Nope, I'm definitely wrong since after such a correction plugin
doesn't work in FF. I should look into the typeof function. But the
fact that TW starts to load properly adds some clues.

Yakov

unread,
Jun 25, 2011, 3:56:34 AM6/25/11
to TiddlyWiki
Anyway, the problem is in the lines 3-28.

The jsMathstr is empty after the call of ajax.gets, but
jsMath.Autoload.root+"jsMath.js" is the right path. Hense, there's a
problem in the ajax (lines 4-7).

Yakov

unread,
Jun 25, 2011, 3:56:43 AM6/25/11
to TiddlyWiki

Weng

unread,
Jul 5, 2011, 3:46:48 PM7/5/11
to TiddlyWiki
Try running Chrome with the command-line parameter --allow-file-access-
from-files. Be sure to close all existing Chrome instances first.

Wang B.

unread,
Jul 5, 2011, 11:37:07 PM7/5/11
to tiddl...@googlegroups.com
Great, that works.

2011/7/6 Weng <weng...@gmail.com>
Try running Chrome with the command-line parameter --allow-file-access-
from-files. Be sure to close all existing Chrome instances first.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.


Reply all
Reply to author
Forward
0 new messages