Hello Tim,

> Has anyone found a way to either double-click on the timeline itself
> or add a method so that the timeline will advance to the next
> chronological event?

Here's what we use on http://www.madeinlocal.com :

  // Centers the timeline on the upcoming event
  centerOnNextEvent: function() {
    var es = this.getBand(0).getEventSource();

    if (es.getCount() > 0) {
      var nextEvent = null;
      var today = new Date();
      var it = es.getEventIterator(today, es.getLatestDate());
      if (!it.hasNext()) {
        it = es.getAllEventIterator();
      }
      nextEvent = it.next();
      this.getBand(0).setCenterVisibleDate(nextEvent.getStart());
    }
  }

This shouldn't be too difficult to adjust to your needs. Just note that
we're adding centerOnNextEvent as a method to the timeline, so "this"
actually refers to the timeline. Also, we're using just one eventSource
for all bands.

Hope it helps, and please ask if there are things to clarify,
Jonas

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to