Hi David, Can you please try modifying your prefix line to the following:
Timeline_urlPrefix = "http://api.simile-widgets.org/timeline/2.3.1/<http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js> " I believe that will be a temporary fix to your problem. Regards, Ted On Wed, May 22, 2013 at 12:46 PM, jjon <[email protected]> wrote: > David, > > Notice what your page is asking for: > > Failed to load resource: the server responded with a status of 404 (Not > Found) > http://api.simile-widgets.org/timeline/2.3.1/timeline-api.jsstyles/timeline.css > Failed to load resource: the server responded with a status of 404 (Not > Found) > http://api.simile-widgets.org/timeline/2.3.1/timeline-api.jsstyles/ethers.css > > And so on. > > These URLs make no sense. They are the result of your assigning a > urlPrefix: > > Timeline_urlPrefix = " > http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js" > > This isn't a prefix, it's the full path to the timeline-api.js file. You > don't need this. If you were hosting the timeline software locally (which > might be a good idea), this would be the way point a browser at the local > source files. But if you're getting the source from the > api.simile-widgets.org host, then a single call to > http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js is all you > need. > > > Using your xml datafile, I constructed this bare minimum timeline which > runs fine on my localhost: > > <html> <head> <script src=" > http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js" > type="text/javascript"></script> <script> var tl; function onLoad() { var > eventSource = new Timeline.DefaultEventSource(); var bandInfos = [ > Timeline.createBandInfo({ eventSource: eventSource, date: "1903", > intervalUnit: Timeline.DateTime.DECADE, width: "100%", intervalPixels: 500 > }) ]; tl = Timeline.create(document.getElementById("history"), bandInfos); > tl.loadXML("History.xml", function(xml, url) { eventSource.loadXML(xml, > url); }); } </script> </head> <body onload="onLoad();"> <div id="history" > class="timeline-default" style="height: 600px"></div> </body> </html> > > On Wednesday, May 22, 2013 8:40:56 AM UTC-7, David Van Fleet wrote: >> >> still not working >> http://people.cti.asu.edu/**vanfleet/history/time-test-**2013.htm<http://people.cti.asu.edu/vanfleet/history/time-test-2013.htm> >> >> >> -- > 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?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Edward Benson http://people.csail.mit.edu/eob/ @edwardbenson -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
