Hi,

First off, I'd just like to say how great Timeline is, really enjoying
working with it.
I have a a fairly simple question (I hope) about changing the data
source.

I've gone through the getting started tutorial here:
http://code.google.com/p/simile-widgets/wiki/Timeline_GettingStarted
I'd now like to add a Javascript function to change the data source.
E.g. load a new XML file and refresh the Timeline.

I've searched a lot and found references to paint(), and update() but
I can't work out how to use them.

Here is the simple sort of code I'm trying:

function updateData(filename) {
  Timeline.loadJSON(filename, function(json, url) {eventSource.loadJSON
(json, url); });
  tl.layout();
}

I'm sure someone can tell me what I'm doing wrong fairly quickly.

Many Thanks,

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