Is there a way to gain further access into the request that Fullcalendar.io sends to the server? Like, are there AJAX options I can modify?
I've examined the header, and it's sending a start
and end
param, plus the custom_params
listed in the example below. However, it is all form data. How do I configure the request to send a JSON object instead of form data?
The documentation is kind of sparse and I am still looking for an example.
Do I use the events
as a JSON feed? OR do I use the function(fetchInfo, successCallback, failureCallback)
?
events: {
url: '[INTERNAL API / MSSQL]',
method: 'POST',
extraParams: {
custom_param1: 'something',
custom_param2: 'somethingelse'
},
failure: function () {
alert('there was an error while fetching events!');
},
// color: 'yellow', // a non-ajax option
// textColor: 'black' // a non-ajax option
},
// events: function(fetchInfo, successCallback, failureCallback) {
// /*is this where I do the AJAX stuff?*/
// fetchInfo = {
// start: "",
// end: "",
// startStr: "",
// endStr: "",
// timeZone: ""
// }
// },