agenda items not displaying

239 views
Skip to first unread message

khizar aziz

unread,
Jan 24, 2012, 3:28:10 AM1/24/12
to jQuery Frontier Calendar
Hi,
i was just trying to add agenda items to my calendar i.e adding them
on as the calendar loads using the example given , just changing the
dates but the agenda items are not showing. The calendar is rendering
fine but there are no agenda items on it. I am using the following
code

$(document).ready(function () {
var jfcalplugin = $("#mycal").jFrontierCal({
date: new Date(),
dayClickCallback: myDayClickHandler,
agendaClickCallback: myAgendaClickHandler,
agendaDropCallback: myAgendaDropHandler,
dragAndDropEnabled: false
}).data("plugin");

try {


jfcalplugin.addAgendaItem(
"#mycal",
"Pakistan v England, Second Test at Dubai",
new Date(2012,01,24,9,0,0,0),
new Date(2012,01,28,17,59,59,999),
false,
{
fname: "Indiana",
lname: "Jones",
artifact: "Holy Grail"
}
);
} catch (e) {
alert("Added not agenda",e.message);
}


jfcalplugin.setAspectRatio("#mycal",0.25);

jfcalplugin.reRenderAgendaItems("#mycal");

});

As far as i know, there should be an agenda showing from 24th of this
month, i.e today to 28th, but it isn't. can someone please help me, i
am stuck here.

Regards,
khizar

khizar aziz

unread,
Jan 24, 2012, 3:53:19 AM1/24/12
to jQuery Frontier Calendar
ok i found the problem, i was adding the event with month 1 set and
was hoping to see it in january, stupid mistake, changed it to 0 and
it worked.

--
Regards,
Khizar

stevenj...@gmail.com

unread,
Oct 19, 2016, 3:54:49 AM10/19/16
to jQuery Frontier Calendar, khiza...@gmail.com
Thanks man your reply solved my problem :)
Reply all
Reply to author
Forward
0 new messages