I have a calendar which used a selectbox to control which calendar is displayed. The id of selectbox is passed along with the start/end dates (using events as json feed below). The calendar loads fine, but when I change the value of the select box, the calendar does not change and uses the initial id. I searched docs but cannot figure out how to get aid below to be dynamic?
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title'
},
defaultView: 'agendaWeek',
weekends: false,
height: 690,
theme: true,
minTime: 6,
maxTime: 18,
allDaySlot: false,
slotMinutes: 30,
events: {
url: 'lib.cfc?method=getReservations',
type: 'POST',
data: {
aid: $('#ddNavSelectArea').val()
},
error: function(){
alert('there was an error while fetching events!');
}
}
})