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

Reply via email to