How to Change Start Date
Is it possible to change the date the control uses initially
$("#eventCalendarHumanDate").eventCalendar({ jsonData: eventsInline, jsonDateFormat: 'human', dateFormat: 'dddd DD/MM/YYYY', txt_NextEvents: "Current Bookings:",txt_noEvents: "None", txt_SpecificEvents_prev: "", txt_SpecificEvents_after: "Bookings:", txt_next: "siguiente", txt_prev: "anterior" });
var flags = $("#eventCalendarHumanDate");
var year = flags.attr('data-current-year');
var month = flags.attr('data-current-month');
flags.attr('data-current-year',"2011");
And how does one get the currently selected date.
Sorry, but I don't understand your question
2014-12-11 15:50 GMT+01:00 paulmortlock [email protected]:
And how does one get the currently selected date.
— Reply to this email directly or view it on GitHub https://github.com/jaime8111/jQueryEventCalendar/issues/7#issuecomment-66628935 .
Jaime Fernández · [email protected] · Twitter http://twitter.com/vissit · Facebook http://www.facebook.com/jaime8111 · Linkedin
http://www.linkedin.com/in/jaimefdez
The date currently selected, how do you get the date.
Is this right?
function getmonthyearday() { var flags = $("#eventCalendarHumanDate"); var month = parseInt(flags.attr('data-current-month')) + 1; var year = parseInt(flags.attr('data-current-year')); var day = $(".current"); var x = parseInt(day.attr("rel")); }
And how do i attach to the event when you click on a date.
If anyone finds it useful I have this working.
function setselectedday(day) {
if (day > '') {
var flags = $("#eventCalendarHumanDate");
flags.find('.current').removeClass('current');
flags.find('#dayList_' + day).addClass('current');
}
}
function getmonthyearday() {
var flags = $("#eventCalendarHumanDate");
var month = parseInt(flags.attr('data-current-month')) + 1;
var year = parseInt(flags.attr('data-current-year'));
var day = $(".current");
var x = parseInt(day.attr("rel"));
}