Christoph Pingel wrote:
> Hi,
>
> I'm just beginning to explore timeline, and it has been a nice  
> experience so far. Now, I'd like to call a custom javascript function  
> from the link under the title of an event bubble. It seems however  
> that the links are treated as relative, so I end up with urls like  
> http://mysite.org/tl/javascript:foo, which is not what I want. Is  
> there way to change this behaviour to absolute urls in some settings  
> file or so? Any pointers to relevant documentation are also  
> appreciated, I didn't find any.
>   
Look in this file
    http://simile.mit.edu/timeline/api/scripts/sources.js
at the bottom for the function fillInfoBubble. You can override it after 
you include timeline-api.js with your own code

    <script>
       Timeline.DefaultEventSource.Event.prototype.fillInfoBubble = 
function(elmt, theme, labeller) {
          // do whatever to fill elmt
       };
    </script>

You have complete control of what goes into the bubble.

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

Reply via email to