Hi Milhouse,
There is a bug or some settings with the timeline extension, especially when deploying the timeline locally.
For starters, I would recommend using timeline 2.3.1. There is no clear place download, but I used wget to get it from here. http://api.simile-widgets.org/timeline/2.3.1/ That would be wget -r http://api.simile-widgets.org/timeline/2.3.1/. It might download all the files at http://api.simile-widgets.org/ but dont worry the site is not that big, and in addition you get all the data for you to play with.
After that the errors become more obvious. You might also consider setting the bundle setting of timeline to false for easier debugging.
There is one hack that did it for me though: In the file time-extension.js, there are 2 hacks by David Huynh. He documented it well why the hacks are necessary. I disabled hack 1, by commenting it out and it worked. I dunno if it will help, but its worth a try.
ps: I am assuming you are using a *nix system and you are trying to deploy exhibit 3.
Regards
Kihara
Timeline (as a standalone framework) is a lot like google maps: it's a
developer library where your own page needs to make a bunch of
javascript api calls to tell the timeline what to do and how to load its
data. Exhibit is a user-friendly *wrapper* for timeline (and google
maps) that takes care of loading the data and invoking the underlying
developer wrapper. Your web page is written for exhibit usage: it
includes a link to the data and expects the library to "take care of
it". If you want to go this route and avoid writing all that javascript
yourself, you need to include the exhibit api (as per my tutorial) and
its time extension to drive the timeline.
I'm not certain, but if you set timeline variables as you currently do,
then Exhibit's time-extension *might* be smart enough to load your local
copy of timeline. If not, you may need to host a local copy of Exhibit
as well.
-David
<script>
Timeline_ajax_url="http://paigemorgan.net/timeline/src/ajax/api/simile-
ajax-api.js
ajax-api.js"
Timeline_urlPrefix='http://paigemorgan.net/timeline/timeline_js/';
Timeline_parameters='bundle=true';
</script>
if (bundle) {
includeJavascriptFiles(Timeline.urlPrefix, [ "timeline-bundle.js" ]);
includeCssFiles(Timeline.urlPrefix, [ "timeline-bundle.css" ]);
} else {
includeJavascriptFiles(Timeline.urlPrefix + "scripts/", javascriptFiles);
includeCssFiles(Timeline.urlPrefix + "styles/", cssFiles);
}
var parseURLParameters = function(parameters) {
var params = parameters.split("&");
for (var p = 0; p < params.length; p++) {
var pair = params[p].split("=");
if (pair[0] == "locales") {
desiredLocales = desiredLocales.concat(pair[1].split(","));
} else if (pair[0] == "defaultLocale") {
defaultServerLocale = pair[1];
} else if (pair[0] == "forceLocale") {
forceLocale = pair[1];
desiredLocales = desiredLocales.concat(pair[1].split(","));
} else if (pair[0] == "bundle") {
bundle = pair[1] != "false";
}
}
};
var SimileAjax = {
loaded: false,
loadingScriptsCount: 0,
error: null,
params: { bundle:"true" }
};
--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To post to this group, send email to simile-...@googlegroups.com.
To unsubscribe from this group, send email to simile-widget...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.