I have been working on an application that uses a different calendar plugin. The plugin is named CLNDR url: http://kylestetz.github.io/CLNDR/
Now I have created a dynamic solution calling to PHP /api/agenda/getAllEvents and jQuery keeps filling my console with the following error:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
$.ajax({
url:'/api/agenda/getAllEvents',
dataType:'JSON',
async:false,
success:function(obj){
return eventArray = obj;
}
});
I don't get this error when i remove the async:false segment from the code only my eventArray that I return stays null / empty as object. When async is added I get the result but with the error message above.
What did I miss at this stage?