Running Timeline completely Local

78 views
Skip to first unread message

Shuyin

unread,
Oct 26, 2011, 4:47:40 AM10/26/11
to SIMILE Widgets
So I'm trying to run the timeline completely local.

So far I got every file running local, but the only problem is is that
it errors on loading the actuall XML files (i'm using 5 different xml
files to populate 5 different timelines like the religions.html
example.)

Is there a way to set the data local too, so that I wont need any
local server like MAMP, XAMP or whatnot.

I've read the loading JSON inline example:
http://code.google.com/p/simile-widgets/source/browse/timeline/trunk/src/webapp/examples/test_example3/test_example3.html

But somehow this wont work either it keeps giving me this error:

Unsafe JavaScript attempt to access frame with URL chrome://chromewebdata/
from frame with URL file://localhost/Sites/timeline/index.html.
Domains, protocols and ports must match.

Can somebody please help me?

Christopher Smith

unread,
Mar 23, 2012, 7:42:04 PM3/23/12
to simile-...@googlegroups.com
I'm having the same issue. It would be nice if someone would post a reply to this issue.

Michael Nosal

unread,
Mar 28, 2012, 11:58:39 AM3/28/12
to simile-...@googlegroups.com
The default behavior of Google Chrome is to disallow file:/// url ajax requests. 
Search for "same origin policy for file uris" for more info.

To avoid the need for any local server, and strictly view a timeline through file:///, you'll need to put your data "inline" or in a locally accessible .js file.

The test_example3.html file, with the local JSON, works fine for me (Chrome 17.0.963.83/Mac), so you should look carefully at your configuration and see if there is anything amiss.

--Mike
Reply all
Reply to author
Forward
0 new messages