[Simile-Widgets] timeline redrawing

2011-11-01 Thread Alvin Cheung
Timeline.DefaultEventSource.Event(event); eventSource.add(evt); } But the timeline doesn't get redrawn after calling eventSource.add. Do I need to call something special to get the timeline redraw? I've tried printing out the contents of evt and it looks good to me. Thanks, Alvin -- You

Re: [Simile-Widgets] timeline redrawing

2011-11-01 Thread Alvin Cheung
On Nov 1, 2011, at 8:51 AM, Alvin Cheung wrote: Hello, Apologies if this question is too simple. I'm trying to write code that dynamically add events to an existing timeline via ajax with this jquery snippet: newData = jQuery.parseJSON(data); for (var i=0; i newData.events.length; i++){ var

[Simile-Widgets] update highlight dynamically

2011-10-27 Thread Alvin
Hello, I am wondering if there is a way to update the highlighted parts of the timeline dynamically (i.e., update the decorators)? I got it to work by re-creating the entire timeline but that unfortunately will also recenter the timeline. Thanks. -- You received this message because you are

Re: [Simile-Widgets] update highlight dynamically

2011-10-27 Thread Alvin Cheung
I see. Thanks. Then is it possible to dynamically add decorators? Alvin On 10/27/2011 12:16 PM, Michael Nosal wrote: Yes, this is possible, and quite easy to do. You do need to add a method to set the times for your decorator and call .paint() on the decorator