Thanks guys - You helped get me past my problem! The jewish-history
example is exactly the movement functionality I am after. My root
problem was that I couldn't get to an object for the timeline i.e. the
"tl" in tl.getBand(0).setCenterVisibleDate(new Date());
I wasn't having any luck getting the jewish-history example to work
with the croxall tutorial.
To illustrate, here is the div from jewish-history:
<div id="tl" class="timeline-default" style="height: 500px;">
</div>
While the croxall tutorial has:
<div
ex:role="view"
ex:viewClass="Timeline"
ex:topBandUnit="year"
ex:topBandPixelsPerUnit=50
ex:bottomBandUnit="decade"
ex:bottomBandPixelsPerUnit=60
ex:showHeader="false"
ex:showsummary="true"
ex:showFooter ="true"
ex:start=".start"
ex:end=".end"
ex:colorKey=".eventType">
</div>
Very different approaches!
I had read in "Controlling A Timeline Within An Exhibit" (
http://simile.mit.edu/wiki/Controlling_A_Timeline_Within_An_Exhibit )
that I needed to get an ex:configuration="timelineConfig" into the
div with an accompanying timelineConfig function to expose the
timeline object to the page.
The example shown there also didn't seem to play nicely with the
croxall tutorial - but was definately closer.
I stumbled onto http://www.musicedmagic.com/Exhibit/composers.html
which was using a google spreadsheet *and*
ex:configuration="timelineConfig" - A little trial and error of
getting the right peices together and finally got it to work.
Thanks to both Marks for responding - I had been stuck for a while and
wasn't getting anywhere - it really helps to have a community to turn
to!
--
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.