php - How to add events in FullCalendar using an array retrieved from a mysql server (phpmyAdmin)? -


i grateful in advance of receive on this. apologise if error obvious. problem can't seem find idea on how display elements of array populate events.

        for(var = 0;i < count;i++)         {             // these arrays contain events             var primaryasset = primaryassets[i];             var release_date = releasedates[i];               $('#calendar').fullcalendar({             header: {                 left: 'prev,next today',                 center: 'title',                 right: 'month,agendaweek,agendaday'             },             editable: true,             weekmode: 'liquid',             weekends: true,              events: [                 {                     title: primaryasset,                     start:  release_date,                     end: release_date                 }             ]           });         } 

please create event array first pass full calender

var evt = [     {         title  : 'event1',         start  : '2014-01-01'     },     {         title  : 'event2',         start  : '2014-01-05',         end    : '2014-01-07'     },     {         title  : 'event3',         start  : '2014-01-09t12:30:00',         allday : false      } ]; 

then add full calender

 $('#calendar').fullcalendar({         header: {             left: 'prev,next today',             center: 'title',             right: 'month,agendaweek,agendaday'         },         editable: true,         weekmode: 'liquid',         weekends: true,          events: evt       }); 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -