root / trunk / tests / test_iCalendar.html

Revision 2931, 1.0 kB (checked in by dmachi, 3 years ago)

add support for recurring events to iCalendar, add initial MonthlyCalendar? Widget and tests

Line 
1<html>
2        <head>
3                <script type="text/javascript">var djConfig = {isDebug: true};</script>
4                <script type="text/javascript" src="../dojo.js"></script>
5                <script type="text/javascript">
6                        dojo.require("dojo.io.*");
7                        dojo.require("dojo.text.textDirectory");
8                        dojo.debug("----------------------------------Why is there data between here and Ical Test Start");
9                        dojo.require("dojo.iCalendar");
10                        dojo.debug("----------------------------------Ical test start");
11       
12                        dojo.io.bind({
13                                url: "test_calendar.ics",
14                                load: function(type, data, evt){
15                                        dojo.debug("Got ICS file");
16                                        var cal = dojo.iCalendar.fromText(data);
17                                        /*var evts = cal.getEvents("01-25-2006");
18                                        for (var x=0; x<evts.length;x++) {
19                                                dojo.debug("Evt " +x+ ": " + evts[x].summary.value + " Start: " + dojo.date.fromIso8601(evts[x].dtstart.value) + " End: " + dojo.date.fromIso8601(evts[x].dtend.value));
20                                        }*/
21                                },
22                                mimetype: "text/plain"
23                        });
24       
25                </script>
26        </head>
27
28       
29        <body>
30        </body>
31</html>
Note: See TracBrowser for help on using the browser.