title: Insert event dynamically to Fullcalendar using Jquery
body: <p>I am having trouble to add new event to fullCalendar using Jquery. I am using Eclipse to develop web and not familiar with Ajax at all and aperantly, it does not work with my eclipse.</p>
  
  <p>Everything is written inside a button.click function in jquery.</p>
  
  <pre><code>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);
  </code></pre>
  
  <p>No bugs were detected but the event is not created.
  P.S: I would like to stay with array feed if no other way in jQuery.</p>