Menu
Welcome, Guest
Username: Password: Secret Key Remember me
Welcome to the Developer forum!
Get all your questions answered here. Learn to integrate calendar in your application.
  • Page:
  • 1

TOPIC: Bare minimum to get a sample of my own up and running?

Bare minimum to get a sample of my own up and running? 9 years 9 months ago #146

  • cwap
  • cwap's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
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.

Re:Bare minimum to get a sample of my own up and running? 9 years 9 months ago #147

  • cwap
  • cwap's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Duuh.. Just after posting this question I noticed I didn't declare ical in a global scope :P Works fine now :)

Please Log in to join the conversation.

Last edit: by cwap.

Re:Bare minimum to get a sample of my own up and running? 9 years 9 months ago #148

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 142
  • Karma: 1
  • Thank you received: 1
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.
  • Page:
  • 1
Time to create page: 0.221 seconds
Powered by Kunena Forum

LATEST IN FORUM

  • No posts to display.

ABOUT US