Hello,
still working on my timeline where i load data as the user scroll
(because the date is huge 13 000 entry) With up to 400 entry for a
single day.
Actually i load the data as the user scroll.
At same time i create some highlight for the weekend (as is not done
for the day band unit)
I was looking on creating a hotzone for the working hours.
I declared my band as:
Timeline.createHotZoneBandInfo({
width: 300,
intervalUnit: Timeline.DateTime.DAY,
eventSource: eventSource,
zones: workHour,
theme: theme1,
intervalPixels: 900,
timeZone: +2
With workHour as en empty array at start.
During scrolling i do:
var startDate = new Date(date);
startDate.setHours(8);
startDate.setMinutes(0);
startDate.setSeconds(0);
//alert(startDate);
var endDate = new Date(date);
endDate.setHours(17);
endDate.setMinutes(0);
endDate.setSeconds(0);
//creating the HotZone
var tmp = new Array();
tmp['startTime']=startDate;
tmp['endTime']=endDate;
tmp['magnify']=10;
tmp['unit']=Timeline.DateTime.HOUR;
//Adding the hotZone to the workHour array
workHour.push(tmp);
var decorator = new
Timeline.SpanHighlightDecorator({
startDate: startDate ,
endDate: endDate,
cssClass: 'timeline-ether-workhours'
});
tl.getBand(1)._decorators.push(decorator);
decorator.initialize(tl.getBand(1), tl);
The HighlightDecorateor work. But the HotZone not.
After that i load my data :
tl.loadJSON("test.php?d="+day+"&m="+month+"&y="+year, function(json,
url) {
eventSource.loadJSON(json, url);
tl.layout();
tl.paint();
tl.finishedEventLoading();
What i miss? Or is not possible to add hotZone during scrolling?
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.