jquery fullcalendar send custom parameter and refresh calendar with JSON

前端 未结 11 1413
名媛妹妹
名媛妹妹 2020-12-23 12:14

im trying to use the jquery fullcalendar. The event data comes from the server using JSON. My page has a dropdown element and the fullcalendar div.

What i need is to

11条回答
  •  心在旅途
    2020-12-23 12:40

    I could not get that to work either. So I ended up with solution similar to this:

    $('#personDropDown').change(function () {
                var source = {
                    data: {
                        filter: $('#personDropDown').val()
                    },
                     url : '/myfeed'
                };
                $('#calendar').fullCalendar('removeEvents');
                $('#calendar').fullCalendar('addEventSource', source);
            });
    

提交回复
热议问题