Welcome,
Guest
|
|
Hi there..
I'm toying around with the free version of Web2Cal atm, to see if it's something that'll suit my needs. So far I'm stuck trying to create a minimal calendar. I got your samples up and running just fine. I find that the documentation is rather lacking, which is why I ask here. Can you tell me which options and/or events I need? <div id="calendarContainer">
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
var ical = new Web2Cal('calendarContainer', {
loadEvents:loadCalendarEvents,
onUpdateEvent: function(){},
views: "day, month, week"
});
ical.build();
});
function loadCalendarEvents(startTime, endTime) {
var eventList = createEvents();
ical.render(eventList);
}
function createEvents() {
var event1 = {
startTime: "09-14-2009 00:08:00",
endTime: "09-14-2009 00:13:00",
eventId: 1
};
var event2 = {
startTime: "09-14-2009 00:15:00",
endTime: "09-14-2009 00:20:00",
eventId: 2
};
var group = {
name: "Grp1",
groupId: 1,
events: [
event1,
event2
]
};
return group;
}
</script> I get stuck on a "Loading.. Please Wait"-screen when I try to run this Thanks in advance.. |
Please Log in to join the conversation. |
|
Duuh.. Just after posting this question I noticed I didn't declare ical in a global scope Works fine now
|
Please Log in to join the conversation.
Last edit: by cwap.
|
|
hmmm.. That was easy!
We are working on revamping our documentation and site to make it developer friendly. Post any questions you have here for quick resolution. |
Please Log in to join the conversation. Team Web2Cal. |