Issue:
When I load the calendar data all the other browsers have not problem displaying it, but IE10 does.
So far I made my ajax call to cache: false
, but that doesn't fix the issue.
Now the odd thing is, in IE10 when you scroll up and down in the calendar the data show up. :(
Does anyone had the same issue before? if so, any suggestion?
Note: Sorry for my english.
============ ajax call for data =========
$.ajax({
type: 'get',
url: '/getData',
cache: false,
data: formData,
success: function(data) {
var classes = [];
var len = data.content.length;
for ( var i = 0; i < len; i++ ) {
var sDay = MAIN.calendar.getYearMonthDayNum().day(data.content[i].date),
eDay = MAIN.calendar.getYearMonthDayNum().day(data.content[i].date),
month = MAIN.calendar.getYearMonthDayNum().month(data.content[i].date),
year = MAIN.calendar.getYearMonthDayNum().year(data.content[i].date),
sHour = MAIN.calendar.getHourMinute24format().hour(data.content[i].start_time),
eHour = MAIN.calendar.getHourMinute24format().hour(data.content[i].end_time),
sMinutes = MAIN.calendar.getHourMinute24format().minutes(data.content[i].start_time),
eMinutes = MAIN.calendar.getHourMinute24format().minutes(data.content[i].end_time);
classes.push({
"id":data.content[i].id,
"start": new Date(year, month, sDay, sHour, sMinutes),
"end": new Date(year, month, sDay, eHour, eMinutes),
"title":data.content[i].title,
"location": data.content[i].location != null ? data.content[i].location.name : "",
"locationId": data.content[i].location != null ? data.content[i].location.id : "",
"recurring": data.content[i].repeat_type,
"type": data.content[i].type,
"start_date" : data.content[i].start_date.substring(0, 10),
"end_date" : data.content[i].end_date.substring(0, 10),
"end_time" : data.content[i].end_time.substring(0, 5),
"start_time" : data.content[i].start_time.substring(0, 5),
readOnly : CANEDIT ? false : true
});
}
MAIN.calendar.calData = classes;
MAIN.calendar.generateCalendar();
}
});