version of SIMILE timeline

21 views
Skip to first unread message

letondal

unread,
Jun 7, 2009, 1:22:11 AM6/7/09
to SIMILE Widgets, leto...@lri.fr
Hi,

I would like to use the version of the timeline which enables to use
filters and highlighting (such as here: http://simile.mit.edu/timeline/examples/jfk/jfk.html).
I'm able to use the setupFilterHighlightControls() function only when
using the version at http://simile.mit.edu/timeline/api/timeline-api.js.
With the distributed source - which is a 2.3.0, the structure of the
document is not compatible (there are objects missing).

My question is thus: where can I find a distribution equivalent to the
http://simile.mit.edu/timeline/api/timeline-api.js?

Thanks a lot in advance,

--
Catherine Letondal -- INRIA

Jon Crump

unread,
Jun 7, 2009, 3:13:15 AM6/7/09
to SIMILE Widgets
Hi Catherine,

the highlight and filtering function was not originally a part of the
timeline API. The file you are missing I think is here:

http://simile.mit.edu/timeline/examples/examples.js

Jon

letondal

unread,
Jun 8, 2009, 5:26:07 AM6/8/09
to SIMILE Widgets, leto...@lri.fr
Hi Jon,

Thanks for this answer. In fact, I have this file - but it does not
work with the 2.3.0 version of the timeline because the Timeline
object does not have a DOM component. The error I get is:
Error : Timeline.DOM is undefined
Source file: http://localhost/~letondal/timeline-local/examples.js
Line : 27

So it looks like the document is not structured the same way in both
versions.

Thanks in advance,

Catherine

Jon Crump

unread,
Jun 8, 2009, 1:04:51 PM6/8/09
to SIMILE Widgets
On Mon, 8 Jun 2009, letondal wrote:

> Thanks for this answer. In fact, I have this file - but it does not
> work with the 2.3.0 version of the timeline because the Timeline
> object does not have a DOM component. The error I get is:
> Error : Timeline.DOM is undefined
> Source file: http://localhost/~letondal/timeline-local/examples.js
> Line : 27
>
> So it looks like the document is not structured the same way in both
> versions.
>

Catherine,

I had forgotten this change. Looking at my own files I see that the
Timeline.DOM functionality has moved to SimileAjax.DOM. My JS expertise is
limited, but you could compare the code in examples.js with the
setupFilterHighlightControls function in my project at
http://home.myuw.net/jjcrump/Timelines/itinerary/js/itin-code.js

Perhaps that will make clear the changes you have to make.

Jon

letondal

unread,
Jun 9, 2009, 11:56:14 AM6/9/09
to SIMILE Widgets


On 8 juin, 19:04, Jon Crump <jjcr...@myuw.net> wrote:
> Catherine,
>
> I had forgotten this change. Looking at my own files I see that the
> Timeline.DOM functionality has moved to SimileAjax.DOM. My JS expertise is
> limited, but you could compare the code in examples.js with the
> setupFilterHighlightControls function in my project athttp://home.myuw.net/jjcrump/Timelines/itinerary/js/itin-code.js
>
> Perhaps that will make clear the changes you have to make.

Thanks a lot - this was exactly the fix I needed.
Reply all
Reply to author
Forward
0 new messages