fullcalendar eventsources no longer display events?
Just updated my fullcalendar to 1.6.3 and jquery to 1.10.2 Suddenly my
calendar no longer shows events from "eventSources". I cant find anything
in the documentation that states that something has changed. To isolate
the problem I have created a very small test example so that I'm sure that
no 3rd party plugin og CSS or anything is responsible.
<html>
<head>
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/fullcalendar.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/fullcalendar.css" />
<script type="text/javascript">
$(document).ready(function()
{
$('#kalender').fullCalendar(
{
eventSources: ['testfeed.php']
//testfeed.php returns exactly: [{title: 'test1', start:
'2013-08-15'},{title: 'test2', start: '2013-08-16'}]
// events: [{title: 'test1', start: '2013-08-15'},{title:
'test2', start: '2013-08-16'}]
});
});
</script>
</head>
<body>
<div id="kalender"></div>
</body>
</html>
This example doesn't work even though my "testfeed.php" returns exactly
the same json code as if I put it directly into the "events" property. If
i comment out the "eventSources" line and uncomment the "events" line,
then everything is fine. But I need to use the eventsources as I did
before the update. What am I missing? This is driving med insane :)
Thanks in advance for all your input!
Kind regards
No comments:
Post a Comment