Rectangle 27 2

Do not send the event that comes from the eventDrop function. It has some values that are calculated through function calls.

You must create a new event objects (var new_event = {}) and copy the attributes that you want to send to your server. Then you can send this new object without exceeding the call stack.

Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).

javascript - fullCalendar and RangeError: Maximum call stack size exce...

javascript php jquery events fullcalendar
Rectangle 27 1

I had the same problem, but it's because you're sending the event object as the post data. You have to filter the event object, for example, by creating another object with only the properties you need as id, title, start, end and allDay and send it as the post data ;)

javascript - fullCalendar and RangeError: Maximum call stack size exce...

javascript php jquery events fullcalendar
Rectangle 27 0

Do not send the event that comes from the eventDrop function. It has some values that are calculated through function calls.

You must create a new event objects (var new_event = {}) and copy the attributes that you want to send to your server. Then you can send this new object without exceeding the call stack.

javascript - fullCalendar and RangeError: Maximum call stack size exce...

javascript php jquery events fullcalendar
Rectangle 27 0

The problem is with delete event.source property. Simply delete it and you are good:

eventDrop: function(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view) {
    delete event.source;
    return $.post("/edit-event/" + event.id, event, function(data) {...}}

javascript - fullCalendar and RangeError: Maximum call stack size exce...

javascript php jquery events fullcalendar
Rectangle 27 0

The problem is with delete event.source property. Simply delete it and you are good:

eventDrop: function(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view) {
    delete event.source;
    return $.post("/edit-event/" + event.id, event, function(data) {...}}

javascript - fullCalendar and RangeError: Maximum call stack size exce...

javascript php jquery events fullcalendar
Rectangle 27 0

I had the same problem, but it's because you're sending the event object as the post data. You have to filter the event object, for example, by creating another object with only the properties you need as id, title, start, end and allDay and send it as the post data ;)

javascript - fullCalendar and RangeError: Maximum call stack size exce...

javascript php jquery events fullcalendar