[EMAIL PROTECTED] wrote:
> Hi,
>
> I was wondering if anyone could help or point me in the right
> direction for a couple of questions I've got about Timeline;
>
> 1. Is it possible to suppress the detail box on events? I'd like to
> suppress the box for events where there's no further information to
> display.
>
> 2. I'd like to create buttons which would scroll the display when
> pressed so that it's slightly easier than dragging. Are there any nice
> hooks in the javascript which I can use?
>
> Thanks in advance
>
> Hamish
>
>
> ----Original Message----
> From: [EMAIL PROTECTED]
> Date: 08/03/2007 13:02
> To: "Hamish Buchanan"<[EMAIL PROTECTED]>
> Subj: Re: Timeline help
>
> Hamish,
>
> Thanks for trying out Timeline :-) And your Beatles timeline looks
> great.
>
> I'd answer your question but I'm really really busy at the moment.
> Would
> you mind sending email to our forum ([email protected]) so that
> other people can help you out?
>
> Cheers,
>
> David
>
> Hamish Buchanan wrote:
>
>> Hi,
>>
>> I'm trying to use TimeLine to produce a website. It's a really good
>> product and I've found it really good to use.
>>
>> I've got a few quick questions about some functionality I'd like to
>> try and get. I was wondering if you would be able to point me in
>>
> the
>
>> right direction to save me having to wade through too much of the
>>
> code:
>
>>
>> 1. Is it possible to suppress the detail box on events? I'd like to
>> suppress the box for events where there's no further information to
>> display
>>
Take a look in
http://simile.mit.edu/timeline/api/scripts/sources.js
and search for "fillTime". You need to override that function with your
own, like so
Timeline.DefaultEventSource.Event.prototype.fillTime =
function(elmt, labeller) {
elmt.appendChild(document.createTextNode("...whatever you want
here..."));
};
>> 2. I'd like to create buttons which would scroll the display when
>> pressed so that it's slightly easier than dragging. Are there any
>>
> nice
>
>> hooks in the javascript which I can use?
>>
Look in
http://simile.mit.edu/timeline/api/scripts/timeline.js
for "scrollToCenter" and "setCenterVisibleDate". You need to get to a
band first, e.g.,
tl.getBand(0).scrollToCenter(Timeline.DateTime.parseIso8601DateTime("1984-12-29"));
Let us know if that works for you.
Cheers,
David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general