开发者

FullCalendar with live event

I need to fire FullCalendar on live() method. So, I tried this:

$('.full-calendar').live('fullCalendar', function(){
    return 开发者_JAVA百科{ header : .... //options here }
});

But this doesn't work. Do you think is possible to achieve this?


fullcalendar is not a supported event by .live()ref. Actually, this is not an event at all (unless you created it by yourself but it wouldn't then be supported by .live().

Your full calendar creation must be triggered by a real event (click, double-click,...)

You could probably use something like:

$('.full-calendar').live('click', function() {
   $('#calendar').fullCalendar({
        // put your options and callbacks here
    })
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜