| Issue 1059: | Events not displaying in IE 7/8 | |
| 2 people starred this issue and may be notified of changes. | Back to list |
While I was using jquery 1.5, 7/8 would not display events and 9 wouldn't display anything. After upgrading jquery to 1.6.2 it now functions properly in IE9 but still no events in 7 or 8. I'm using v1.5.1 of fullcalendar.
I'm using PHP and MySQL to dynamically pull results and display them on the page, but the output is still valid.
i.e.
<script type="text/javascript">
$(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;
},
editable: false,
events: [
{
id: 1,
title: 'Dance Party',
start: '2011-07-29 21:00',
end: '2011-07-31 06:00',
allDay: false
},
]
});
});
</script>
Jul 28, 2011
#1
stevet...@gmail.com
Jul 29, 2011
IE7/8 are working fine in my development.
One thing I can see from your posted code is the additional comma in the events array.
events: [
{
id: 1,
title: 'Dance Party',
start: '2011-07-29 21:00',
end: '2011-07-31 06:00',
allDay: false
}, <------
]
IE really doesn't like these.
Status:
Discussing
Aug 21, 2011
(No comment was entered for this change.)
Status:
Done
Sep 13, 2011
Ive been looking for days for my error and looking on this forum for solutions. Finally i found the right post. I had the same comma there and now its fixed for IE. I hate IE, even with debugging it didnt highlight the mistake. Thanks
Mar 5, 2013
Thanks much. I was also having this issue when using looping code that create multiple entries in a CMS. My solution was to include two curly brackets after the looping structure so there would be no final quote. As in...
[code]
},
{}
], // close events
[/code]
|
|
| ► Sign in to add a comment |