Blue wrote:
> Hi,
> I'm new at using the SIMILE timeline api. I use it for a project for
> school.
>
> The question is:
> Can i put the date that is "selected" in an input field ?
> Or is it possible to get a timeperiod that is shown in an input field?
> A bit of code since I don't have a server.
>
> var topband = this.timeline.getBand(0);
> topband.addOnScrollListener(updateDate);
>
> function updateDate() {
> var centerDate = topband.getCenterVisibleDate();
> document.getElementById("date").value = centerDate;
> }
>
> This is the input field:
> <input type="text" id="date" value=""/>
>
> Please help me out.
>
Hi Blue,
It looks like you're have the right code... Does it not work? What else
do you need?
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
-~----------~----~----~----~------~----~------~--~---