3
私はfullcalendar 1.5.1とjQuery 1.6.2を使用しています。以前はjQuery 1.5を使用していましたが、IE7-9では何も動作しませんでした。今IE9は動作しますが、7と8では動作しません。カレンダーは表示されますが、イベントは表示されません。彼らはhtmlのどこにも存在しません。jQuery FullcalendarはIE7/8でイベントを表示しません
私はPHPを使用してMySQLテーブルから自分のイベントを動的に呼び出しています。次のように
出力は次のようになります。私が試した
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
allDaySlot: false,
eventClick: function(calEvent) {
window.location = "ac_events.php?edit=" + calEvent.id;
},
events: [{
id: 1,
title: 'Dance Party',
start: '2011-07-29 21:00',
end: '2011-07-31 06:00',
allDay: false},
{
id: 2,
title: 'Meeting',
start: '2011-07-28 09:00',
end: '2011-07-28 18:00',
allDay: false},
{
id: 3,
title: 'Dinner with partners',
start: '2011-07-28 19:00',
end: '2011-07-28 21:00',
allDay: false},
{
id: 4,
title: 'Paroll Due',
start: '2011-07-28 23:00',
end: '2011-07-29 01:00',
allDay: false}, ]
});
});
何もこの作業を取得することはできません。誰にでも解決策がありますか?
EDIT:
私は次のJavaScriptのエラーを取得:
Message: 'undefined' is null or not an object
Line: 918
Char: 7
Code: 0
URI: http://[...]/javascript/fullcalendar.js
ライン918:
function fetchEventSource(source, fetchID) {
_fetchEventSource(source, function(events) {
if (fetchID == currentFetchID) {
if (events) {
for (var i=0; i<events.length; i++) {
events[i].source = source; // 918
normalizeEvent(events[i]);
}
cache = cache.concat(events);
}
pendingSourceCnt--;
if (!pendingSourceCnt) {
reportEvents(cache);
}
}
});
}
はい、元の投稿を確認してください。 –
@imodaイベント配列にnullオブジェクト(または未定義)を作成する可能性がある場合は、コンマで正しく表示されているようです。それを取り出してみましたか? – Shaded
あなたは正しいです。ありがとう。 –