Hello, I am fairly new to the FullCalendar, but totally love it's functionality. I am trying to use the dayClick function. Perhaps someone can guide me in the right direction.
I currently have this.
dayClick: function (date, allDay, jsEvent, view) { var titleNew = prompt('Event Title:'); var thedate1 = formatDate(date);
$.ajax({
url: "classes/class.Post.php?a=dayClickCalendarEvent",
dataType: 'json',
data: {
title: titleNew,
start: thedate1,
end: thedate1
},
success: function (data, response, event, date) {
$('#calendar').fullCalendar('renderEvent', titleNew);
},
error: function () {
alert("Oops! Something didn't work");
}
});
},
My problem is that I can't get the event to RENDER to the calendar no matter what. Am I missing something? I am using the calEvent, where I found it on another StackOverflow post.
Any help would be appreciated. Thank you.