Gu,

It'd be best if you can put your (broken) timeline up on some public URL 
where I can look at and see what's gone wrong.

David

[EMAIL PROTECTED] wrote:
> Hi,
> I try to get a Timeline extension working. It's similar to the existing
> 'planning' extension and I basically have copied and modified those files in a
> new folder /ext/myextension.
> Right now I only try to get the bands and units displayed without any events.
>
> While the bands appear I get stuck with the error:
> Error: date.getTime is not a function
> Source File: /SimileTimeline/scripts/util/date-time.js
> Line: 191
>
> which is triggered by the line
>     var date2 = new Date(date.getTime() + timeShift);
> in the function Timeline.DateTime.roundDownToInterval
>
> As far as I can see this function is called in the file 
>  /SimileTimeline/scripts/ether-painters.js
>
> The error actually occurs also when I try to use the unchanged 'planning' 
> files
> instead of 'myextension' files.
>
> I'm rather unsure if the problem might be 
> a) that this general ether-painters.js file is used as I somehow would have
> expected that the special ether-painters.js file in
>  /SimileTimeline/ext/myextension/scripts/ether-painters.js
> would be used instead
>
> b) that the units I use (and also 'planning' if I'm right) are self defined 
> and
> not DateTime.(YEAR etc.) (and maybe therfore the 'date' variable isn't of type
> Date and so has no getTime function?)
>
> c) something else 
>
> I have the following in my <header>:
>  <script type="text/javascript" 
> src="/SimileTimeline/timeline-api.js"></script>
>  <script type="text/javascript"
> src="/SimileTimeline/ext/myextension/myextension-api.js"></script>
>
> and the timeline is created with
> Timeline.create(div, bandInfos, Timeline.HORIZONTAL, myextensionUnit);
>
> Thanks for any hints,
> Gu
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to