[Simile-Widgets] timeline redrawing

2011-11-01 Thread Alvin Cheung
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 event = newData.events[i]; var evt = new

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

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: