If you write your code to first use $.ajax and manually manage the expected data type, you can get around the mime-type issue that can come up from loading from local file system.
On Tuesday, October 15, 2013 3:38:05 PM UTC-4, 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.
