Kyle,
There's probably a better way, but this works:
in onLoad, when you call the load function, you can use the callback
to
execute a function showLatestBubble thus:
tl.loadJSON("sourcedata.js", function(json, url)
{eventSource.loadJSON(json, url); showLatestBubble()});
Then after the onLoad function define:
function showLatestBubble(){
evt_count = tl.getBand(0).getEventSource().getCount();
tl.getBand(0).showBubbleForEvent('e' + evt_count);
}
I wanted to be able to do this myself, so I worked something out;
however,
my js skills aren't much, so if anybody has critiques or suggestions
on
this method, I hope you'll share them with us.
The timeline api makes all sorts of things possible, but much depends
upon
being able to identify an eventID. Is there a way to derive the ID of
an
event from its other properties? Is there a simple way, for example,
to
get the eventID knowing only the event's startDate? Or, search the
EventSource for an event having a user-defined property and get that
event's ID?
Jon
On Mar 9, 8:33 am, Deuce <[email protected]> wrote:
> Hi Michiel!
>
> Thanks for the reply!
> Since I am only using the Timeline plugin (sorry I didn't specify
> that), and not the Exhibit plugin.
> Is there a way to do this with the Timeline plugin?
>
> Thank you very much!
>
> Kyle
>
> On Mar 8, 1:16 am, Michiel <[email protected]> wrote:
>
> > Hi,
>
> > Try this
> > url:http://www.simile-widgets.org/exhibit/examples/cereals/cereal-charact....
>
> > For the code
> > see:http://code.google.com/p/simile-widgets/source/browse/exhibit/tags/2....
> > line 330 or search for the word hash.
>
> > Michiel
>
> > On Mar 7, 10:54 pm, Deuce <[email protected]> wrote:
>
> > > I would like for the very first bubble to automatically display when
> > > the page is loaded.
> > > I have looked around and don't see what I should be editing.
> > > If you have any input on what it would take to do this, please let me
> > > know.
>
> > > Thank you very much!
>
>
--
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.