Re: [Simile-Widgets] timeline: Dynamically Changing events displayed

2011-05-19 Thread Michael Nosal
You can change events at any time after they have been loaded. The events are accessible through the EventSource object. Timeline doesn't have event setters, but they are easy enough to add: jQuery.extend(Timeline.DefaultEventSource.Event.prototype,{ setStart: function(start) {if

Re: [Simile-Widgets] timeline: Dynamically Changing events displayed

2011-05-16 Thread Michael Nosal
What do you mean by dynamically change? If you mean simply loading different datasets at initialization time, then it is a simple call to loadXML (or loadJSON): tl.loadXML(examples/jfk/jfk.xml, function(xml, url) { eventSource.loadXML(xml, url); }); You just specify the path to the desired data

[Simile-Widgets] timeline: Dynamically Changing events displayed

2011-05-14 Thread espressoguy
I'm new to timeline... I can see in the jfk example that is provided with the distribution of timeline that it's possible to dynamically change the events displayed. But I don't see any documentation explaining how this works. I'm sure it's done with AJAX but I don't see an explanation of