On Aug 19, 2012, at 11:42 AM, lesm wrote:

> Does the SIMILE timeline support dynamic loading of new events without 
> refreshing the entire widget such that I could make a call like:
> 
> self.setInterval(readLatestJson, 3000);
> 
> And the new event would show up in the timeline? 
> 
> Or better yet, if I'm subscribing to a JMS topic, could the new data be event 
> driven?
> 
> I apologize if these are very simple questions. I'm relatively new to 
> JavaScript.

Yes, you can do exactly as you suggest - events can be loaded/unloaded and 
changed at any time, and the timeline can refresh to show the changes without 
having to dispose and recreate the entire timeline.

Any data source accessible via ajax can be used. Timeline supports XML, JSON 
and SparQL by default, but it is easy enough to add event parsers for new 
formats. I posted a Yaml parser a while back.

If you are careful, you can arrange it so your users might not notice that the 
events are being updated dynamically.

--Mike

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