On Fri, 2007-03-09 at 15:50 -0600, Graham Forte wrote:
> I do something similar with a Servlet...
>
> //timeline init code.
> //type equals url to my servlet
> //time equals an integer to dynamically set the timespan in ethers.
> function onLoad(type,time) {
> ...
> ...
> ...
> tl.loadJSON(type, function(json, url) {eventSource.loadJSON(json,
> url);});
>
> I basically pass the PrintWriter output stream from my servlet to
> timeline as json.
>
> Is that what you are trying to do?
Thanks for the suggestion, it got me thinking, so I ended up doing it as
a dynamic URL, which can then be passed to the timeline parser. That
also makes it more flexible. So, the blog for example can generate a
timeline by passing an array of data to a timeline wrapper object.
for example, the file to load with Timeline.loadXML is:
index.php?module=blog&action=gentimeline&user=dkeats&style=showinpagefooter
or
index.php?module=wiki&action=gentimeline&type=pagehistory&pageid=zf21_4321
I got it working that way, and all I needed to do is provide a method to
build a timeline from an array that those module authors pass over. We
don't need to know anything about each other's code. Moving on....
Sorry for the clutter, but sometimes it just helps to tell someone what
you want to do....
regards
derek
All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general