Your <script> tag is referencing the older code at simile.mit.edu.
Try <script src="http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js" type="text/javascript"></script>
--Mike
On Mar 2, 2011, at 6:00 AM, mohsen anvaari wrote:
> Hi,
>
> Here is my code:
>
> ...
> <script src="http://simile.mit.edu/timeline/api/timeline-api.js?
> bundle=true" type="text/javascript"></script>
> ...
> var eventSource = new Timeline.DefaultEventSource(0);
> ...
> var tl = Timeline.create(document.getElementById("events"),
> bandInfos);
> tl.loadJSON("results.php?"+ (new Date().getTime()), function(json,
> url) {
> eventSource.loadJSON(json, url);
> });
> ...
> tl.getBand(0).setCenterVisibleDate(eventSource.getLatestDate());
> ...
>
> Everything work fine and I have the timeline with events displayed on
> it. The only problem is with the last line of code which returns this
> error:
>
> Uncaught TypeError: Cannot call method 'getTime' of null bundle.js:
> 4492
>
> Can anybody help me please?
>
> --
> You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
> To post to this group, send email to simile-...@googlegroups.com.
> To unsubscribe from this group, send email to simile-widget...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.
>
> To post to this group, send email to simile-widgets@googlegroups.com.
> To unsubscribe from this group, send email to simile-widgets+unsubscribe@googlegroups.com.
> To post to this group, send email to simile-widgets@googlegroups.com.
> To unsubscribe from this group, send email to simile-widgets+unsubscribe@googlegroups.com.