ksd wrote:
> I am using
> <script src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-
> api.js" type="text/javascript"></script>
>
> Along with
> <script src="http://static.simile.mit.edu/exhibit/extensions-2.0/time/
> time-extension.js" type="text/javascript"></script>
>
> Since there is a lot of data in each JSON item, I want to limit what
> is visible in the timeline bubble.
> I have seen several posts on how to do this with Timeline code (not
> Exhibit, timeline-extension) and the answer was to modify timeline
> function fillInfoBubble.
>
> I have done the following in the middle of my page.. the idea is that
> this will only show the title in the bubble (i will add to that
> later).
>
> <script type="text/javascript">
> Timeline.DefaultEventSource.Event.prototype.fillInfoBubble = function
> (elmt, theme, labeller) {
> var doc = elmt.ownerDocument;
>
> var title = this.getText();
> var divTitle = doc.createElement("div");
> var textTitle = doc.createTextNode(title);
> divTitle.appendChild(textTitle);
> theme.event.bubble.titleStyler(divTitle);
> elmt.appendChild(divTitle);
>
> };
> </script>
>
> I have placed other code in the same location that does what it
> should.
>
> This had NO EFFECT on the bubble.
>
> Is the function that needs to be overridden in Exhibit, timeline
> extension different from just Timeline code?
> I have successfully overridden
> Timeline.GregorianDateLabeller.prototype.labelInterval on the same
> page without a problem. Why did this not work?
>
> thanks,
> Kutbuddin
>
Kutbuddin,
What you want is to override the very last function in this file
http://static.simile.mit.edu/exhibit/extensions-2.0/time/scripts/timeline-view.js
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
-~----------~----~----~----~------~----~------~--~---