Perfect, that was easy.

Thanks!


On May 4, 9:20 pm, Michael Nosal <[email protected]> wrote:
> Sure, it's easy:
> tl.getBand(0).getCenterVisibleDate() will return the center of band 0.
> If your other bands are sync'ed to each other then that's all you need.
>
> Try adding this:
> var topBand = tl.getBand(0);
>
> topBand.addOnScrollListener( function(band) {
>         document.getElementById("output").innerHTML = 
> band.getCenterVisibleDate();
>         });
>
> As the user scrolls the timline, the date at the center of band 0  will be 
> printed in the element with id="output"
>
> You could easily write the date out to a cookie or ajax it back to the server.
>
> --Mike Nosal
>
> On May 4, 2010, at 6:12 AM, Dom wrote:
>
> > Hi,
>
> > I need to work out what the current date being viewed in the timeline
> > is before displaying a timeline page. If this date is worked out I can
> > then use the setCenterVisibleDate method to move the timeline to this
> > date when the page is re-displayed. The first time the timeline is
> > displayed todays date can be shown.
>
> > Is it possible to capture what the current position in the timeline
> > is?
>
> > Dom
>
> --
> 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 
> athttp://groups.google.com/group/simile-widgets?hl=en.

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