>> You'll want too customize the fillInfoBubble() method Wow, thanks, I will try that.
This is very helpful. Thanks Jeff Roehl > >From: Michael Nosal <[email protected]> >To: "[email protected]" <[email protected]> >Sent: Tue, May 31, 2011 6:57:14 AM >Subject: Re: [Simile-Widgets] Info Bubble. > >You'll want too customize the fillInfoBubble() method of the Event object. > > >Look in /webapp/api/scripts/sources.js, where >Timeline.DefaultEventSource.Event.prototype is defined. >One of the member methods is a function called fillInfoBubble. This is what >builds the content that goes in the info bubble. >It calls some helper functions to handle styling/formatting. >The "[Discuss]" link comes from the fillWikiInfo method which fills in the >wiki >info for events. >The date in the info bubble comes from the fillTime method. > > >You can easily override the info bubble behavior and customize it by including >your own fillInfoBubble method. >In your script, after the timeline scripts have been loaded, add: > > >Timeline.DefaultEventSource.Event.prototype.fillInfoBubble = function(elmt, >theme, labeller) { >// define your custom infoBubble code here... >} > > >For example, you could override the fillWikiInfo method to leave off the >[Discuss] link, or leave off the image. > > >Your bubble border images aren't showing up because the relative path to the >images is incorrect. Look at where the graphics.css stylesheet is coming from, >and then check that there is an images directory one level above it. That's >where it is expecting to find all the bubble border images. > > >--Mike > > >On May 27, 2011, at 4:50 PM, Jeff Roehl wrote: > >Hi all, >> >>Concerning: >> >>http://184.72.244.64/hp/page6.htm >> >>How do I get rid of the "[Discuss]" link in the info bubble? >> >>How do I get rid of the date in the info bubble? >> >>How do I get the borders of the bubble to appear? >> >>Tanks very much in advance. >> >>Thanks >>Jeff Roehl >> >>-- >>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. >> > -- >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. > -- 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.
