How to add Google Calendar Dynamically to jQuery F

2019-08-28 14:54发布

问题:

I have seen how to add google calendar, but when I run it, it create's a new calendar, even though the selector I am using, refer's to an existing calendar.

        $calendar.fullCalendar({
        events: $.fullCalendar.gcalFeed($feed_url.val())
    });

I have other functions, that use renderEvents, but I am not sure how to use that with google calendars...

Any thoughts or suggestions?

Thank You.

回答1:

Look at the addEventSource function. If you can call that function with your $.fullCalendar.gcalFeed($feed_url.val()) as the second argument. I tested it over at jsfiddle.