more likely than a content-type problem is that you are running into security restrictions. browsers are very picky about javascript loading content from "other sites" than the original page, and local files are always considered "other sites" even when your page is also a local file.
On 10/15/2013 3:38 PM, Devon Young wrote:

I'm trying to get a timeline working, using the code from http://simile-widgets.org/, and following the instructions/tutorial at http://simile-widgets.org/wiki/Timeline_GettingStarted

It works perfectly when I serve it via HTTP <http://zamphatta.com/something.htm>, but when I use it as local files on my computer, it only shows a blank timeline in Chrome. Firefox can't even seem to load the page at all. Why? I'm not a Javascript expert, so I'm a bit lost as to why this could be problematic.

My only guess is that when grabbing a local XML file, there's no content-type so the script gets confused or something, but that would be pretty major bug that I'm thinking would've been found by now. Even if that's the issue though, I don't know how to fix that in JS. I thought I could try using JSON, but I couldn't find how to 'import' JSON data on the Wiki.

(I'm using Google Chrome & Firefox, on Ubuntu. I don't need this to work in IE)

--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "SIMILE 
Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to