On 2012-06-26 09:36 , Jeffrey C. Witt wrote: > Hi everyone, I'm trying to get the timeline widget to work following this > tutorial. > http://code.google.com/p/simile-widgets/wiki/Timeline_GettingStarted > > For the most part it seems to be working. The timeline shows up in the div > and all the scrolling works. However, I can't get any "events" to show up > on the timeline. > I've attached the two files I'm using. The one with the timeline > (timeline.html) and the example XML document (example1.xml). If someone > would be willing to test these documents for me and see if it works for > you, or better yet, help me see what I'm doing wrong, I would be grateful.
Hi Jeffrey, you've got just a couple things out of line. You call "Timeline.loadXML" - this is a per-instance call, not a class call. You should be calling tl.loadXML. You also define var tl outside of the function onLoad; it should really be inside, there's no reason for it to be a global variable (but that's immaterial to the issue). The major problem is that your band definitions don't refer to any event sources. You need to tie the event source to the band; re-examine working examples, you'll see "eventSource: eventSource" or something like it in createBandInfo calls. > (Since the tutorial is a bit old, I wonder if I'm linking to an outdated > api.) You are. Use http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js instead. > Please help, I'm really eager for this to work. > Sincerely, > jw > -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.
