Herb, I think you can do this in the browser. The band object has many useful methods, eg: getMinDate(), getMaxDate() and many others. Check the api docs at <http://simile.mit.edu/wiki/Band_Class>. This site is in some ways out of date, but a lot of basic stuff there is helpful. Last year I started to try to move in and update all the timeline docs to their new site at <http://www.simile-widgets.org/wiki/Timeline>, but that project has languished a bit.
good luck, Jon On Wed, Oct 6, 2010 at 3:28 PM, herb <[email protected]> wrote: > Thanks, Jon and LVS. I got it running after a fashion, but I have to > do some pretty klugy things, so I'm sure that my method is not the > best one. > To summarize, I load the events directly from my server in > > tl.loadJSON(getTimelineURL, function(json, url) { > > eventSource.loadJSON(json, url); }) > > > This works to load and display the data. I need the start date and > end date, so I do that by making a separate call to the server (using > the YUI loadjson) and loop through the list of points to find the > earliest and latest dates. > Although this works, I cannot believe that it is necessary, so I am > still doing something that is less that optimal. Because of caching, > the second call to the server takes only a few milliseconds. So, I > can live with it. -- 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.
