oh dear, there's one issue left: the data feed is the resource for FullCalendar and it does not accept resdata as a resource. To see what the problem is I printed both the response from the ajax request (which is working as a resource) and the contents of resdata (the javascript way):
ajax response (working) printed to view with document.getElementById('out').innerHTML = response;
[object Object],[object Object],...
javascript resdata (not working) printed to view with document.getElementById('out2').innerHTML = resdata;
[{"id":"1110","order":1,"title":"Shemar Zieme (1110) (1)"},{"id":"1114","order":2,"title":"Peyton Moore (1114) (2)"},...
Both data are coming from the same controller function. I guess I have to encode the javascript data somehow to make it work as a resource?
Doing console.log(resdata) gives me loads of quotes, that does not seem right, maybe that's the issue?
[{"id":"1110","order":1,"title":"Shemar Zieme (1110) (1)"},{"id":"1114","order":2,"title":"Peyton Moore (1114) (2)"},...