Solved the problem.
(With help from other in this forum in other threads... thanks!).
Below is the code as it is working for me:
<script>
function centerTimeline(date) {
tl.getBand(0).setCenterVisibleDate
(Timeline.DateTime.parseGregorianDateTime(date));
}
</script>
<div ex:role=view>
<div ex:role=lens>
<a ex:href-subcontent="javascript:centerTimeline({{.year}});"><span
ex:content=".label"></span></a>
</div>
</div>
On Mar 13, 4:04 pm, SiteStories <[email protected]> wrote:
> Hello all,
>
> Below is code I currently have in place to:
>
> - create a simple vertical list of timeline events
> - jump to the specified timeline date when that event title is
> clicked.
>
> As of now, it works beautifully, but, as you see below, each item has
> a static date setting of 1950.
>
> The question: what code to place in this to dynamically retrieve each
> event's actual date, and place it where 1950 currently resides?
>
> Desired result: when a used clicks on any event in this dynamically
> created list, the timeline will jump to the correct corresponding
> date.
>
> <script>
>
> function centerTimeline(date) {
> tl.getBand(0).setCenterVisibleDate
> (Timeline.DateTime.parseGregorianDateTime(date));
> }
>
> </script>
>
> <div ex:role=view>
> <div ex:role=lens>
> <a href="javascript:centerTimeline(1950);"><span
> ex:content=".label"></span></a>
> </div>
> </div>
>
> Thanks for any advice!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---