I have just updated my application to use version 2.2 but i see that
the way the events are created has been changed. I was manually
creating the events from arrays.
like this:
for(var i=0;i<dates.length;i++) {
var dateEvent = new Date();
var day = dates[i].substring(0, 2);
var month = dates[i].substring(3, 5)-1;
var year = dates[i].substring(6, 10);
dateEvent.setFullYear(year,month,day);
dateEvent.setHours(0);
// create the events
var evt = new Timeline.DefaultEventSource.Event(
start = dateEvent, //start
dateEvent, //end
dateEvent, //latestStart
dateEvent, //earliestEnd
true, //instant
"test", //text
"Description for Event "], //description
"", //bubble image
"http://www."+, //link
imageLinks[i], //event icon
"",//color of event when no text (lowerbands)
textColours[i], //event text colour
gprdDescs[i] //Hover text
);
eventSource.add(evt);
}
Now this won't work and no events are shown on the timeline.
How can one create events manually, i have searched through the wiki's
and can't seem to find anything.
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---