Inserir evento dinamicamente para Fullcalendar usando Jquery
Estou tendo problemas para adicionar um novo evento ao fullCalendar usando o Jquery. Eu estou usando o Eclipse para desenvolver web e não está familiarizado com o Ajax e, de forma imediata, ele não funciona com o meu eclipse.
Tudo está escrito dentro de uma função button.click no jquery.
var subject = $("#txtEventName").val(); //the title of the event
var dateStart = $("#txtDate").val(); //the day the event takes place
var dateEnd = $("#txtDateEnd").val(); //the day the event finishes
var allDay = $("#alldayCheckbox").val(); //true: event all day, False:event from time to time
var events=new Array();
event = new Object();
event.title = subject;
event.start = dateStart; // its a date string
event.end = dateEnd; // its a date string.
event.color = "blue";
event.allDay = false;
events.push(event);
$('#calendar').fullCalendar('addEventSource',events);
Nenhum bug foi detectado, mas o evento não foi criado. P.S: Eu gostaria de ficar com o array feed se não houvesse outra maneira no jQuery.