How about this:
Timeline.DurationEventPainter.prototype._showBubble = function(x, y, evt) {
window.location = evt.getProperty("link");
}
David
Gabriel Millerd wrote:
> On 4/11/07, David Huynh <[EMAIL PROTECTED]> wrote:
>
>> Gabriel,
>>
>> Could you give us a URL where we can see your Timeline and determine
>> what might have gone wrong? If your timeline is private, make another
>> one similar to it but containing fake data.
>>
>>
> I am sorry for the confusion. I am merely trying to have the
> document's location changed when a event is clicked rather than
> bringing up the bubble. On the wiki the following function is show as
> a method of overriding the display of the bubble ...
>
> Timeline.DurationEventPainter.prototype._showBubble = function(x, y, evt)
> {
>
> }
>
> ... so when visiting
> http://simile.mit.edu/timeline/examples/dinosaurs/dinosaurs2.html for
> example and and clicking on "Wannanosaurus" (what a name) which has an
> XML entry fragment of ...
>
> <event title='Wannanosaurus' link='http://internt.nhm.ac.uk/...'></event>
>
> ... rather than showing the bubble I would want to just add this to my
> page's javascript to override that showBubble function ...
>
> Timeline.DurationEventPainter.prototype._showBubble = function(x, y, evt)
> {
> //retrieve this event's //data/[EMAIL PROTECTED] as clickedLink
> document.href = clickedLink
> }
>
> Sorry for the confusion. Thanks for your response.
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general