ExifGuy wrote:
> Hi There!
> First I must congratulate you guys for this awesome framework.
> I am new to exhibit and have a pretty basic question: How do we make
> Exhibit/ Timeline handle exeternal events?
> e.g., lets say there is a button/ some JS widget where a user clicks,
> and I want Exhibit/ Timeline to respond to that.
>
> I tried writing an onclickHandler for my external widget, which would
> make the timeline behave in a particular way( like showing the
> bubble):
>
> function onClickHandler() {
>
> alert ("here");
> Timeline.OriginalEventPainter._showBubble(623, 23, " ");
> }
>
>
> while the alert is being executed, the Timeline does not respond to
> it. Am i missing something?
>
If you are using Timeline by itself (assuming version 2.2.0), then your
code probably looks something like this:
var theTimeline; // global variable
function onLoad() {
...
theTimeline = ...
...
}
And presuming that you have assigned IDs to your events
<data>
<event id="event-298" ...
Then you'd just need
function onClickHandler() {
theTimeline.getBand(0).showBubbleForEvent("event-298");
}
If you want to do the same when using Timeline inside Exhibit, then
you'd need to hook up your own Timeline constructor.
http://simile.mit.edu/wiki/Controlling_A_Timeline_Within_An_Exhibit
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---