Issue 2274: Small tweak to allow usage of JSON feed from ASMX (.net)
Status:  Duplicate
Merged:  issue 2166
Owner: ----
Closed:  Sep 2014
Reported by frederic...@gmail.com, Sep 2, 2014
Hi,

in order to use FullCalendar with a .Net backend, I had to add 2 lines of code for it to work, due to the "d" variable that .Net adds to the returned JSON data.

Around line 1482, I changed this:

success: function(events) {
	events = events || [];

        // FM 02/09/2014
	if (events.d !== undefined)
		events = events.d; // This makes it compatible with ASMX backends

	var res = applyAll(success, this, arguments);
	if ($.isArray(res)) {
		events = res;
	}
	callback(events);
},

Would be nice for others if you added this too, as you wish...

Cheers
fred
Sep 5, 2014
Project Member #1 adamrs...@gmail.com
would prefer not to bake in logic for specific backends.  Issue 2166  (when it is implemented) would allow you to do this. merging
Status: Duplicate
Mergedinto: 2166