My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1059: Events not displaying in IE 7/8
2 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2011


Sign in to add a comment
 
Reported by stevet...@gmail.com, Jul 28, 2011
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
I also get this javascript error

Message: 'undefined' is null or not an object
Line: 918
Char: 7
Code: 0
URI: http://[...]/javascript/fullcalendar.js

Line 918 is: events[i].source = source;
Jul 29, 2011
Project Member #2 althaus.it
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
Project Member #3 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done
Sep 13, 2011
#4 wimbrouw...@gmail.com
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
#5 gwalch...@gmail.com
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

Powered by Google Project Hosting