I'm trying to load ALL the Google calendar events into the calendar on
my site. The following code only displays events for this month and
the future, not all the events:
function loadCalendar(calendarUrl) {
var service = new
google.gdata.calendar.CalendarService('gdata-js-client-samples-
simple');
var query = new
google.gdata.calendar.CalendarEventQuery(calendarUrl);
query.setOrderBy('starttime');
query.setSingleEvents(true);
service.getEventsFeed(query, listEvents, handleGDError);
}
Also, I would like to order the events ascending, but if I add in the
line "query.setSortOrder('ascending');", then it gives me all the
events in the past.
Any suggestions?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---