How do I properly load the jQuery fullcalendar plugin in a hidden div

后端 未结 10 1281
执念已碎
执念已碎 2021-01-01 16:47

I\'m using the jQuery tools tabs to divide my page into tabs. One of those tabs contain a jQuery Fullcalendar. Because I load JavaScript last in the page for speed and to av

10条回答
  •  暖寄归人
    2021-01-01 17:24

    What you need to do is load the data after the link is clicked, not entirely sure but i think the issue is that the height is not set correctly after the data is loaded so it only shows the top part.

    What i have done and worked for me.

    $(document).ready(function() {
        $("#calendareventlink").click ( function(){
          loadCalendar();
        });
    });
    function loadCalendar(){
      //Do your data loading here
    }
    
    View Calendar
    

提交回复
热议问题