javascript - fullcalendar eventsources no longer display events? -
just updated fullcalendar 1.6.3 , jquery 1.10.2 calendar no longer shows events "eventsources". cant find in documentation states needs changed. isolate problem have created small test example i'm sure no 3rd party plugin og css or 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 though "testfeed.php" returns same json code if put directly "events" property. if comment out "eventsources" line , uncomment "events" line, fine. need use eventsources did before update. missing? driving med insane :)
thanks in advance input!
kind regards
i know old, else comes here, answer me change json source (i.e. array, not 'events:' wrapper) :
[{"title":"new 1 due 7 oct","start":"2015-10-07","end":"2015-10-08","allday":true}]
and call url option like:
eventsources: [ { url: '/someurl' } ]
Comments
Post a Comment