Hi,

Setting the orderby and singleevents param should retrieve future events as
well, hmm, I am not sure why you are not getting future events.  what is the
calendarUrl you are using?

Thanks,
Austin

On Mon, Mar 24, 2008 at 9:27 AM, CreativeLlama <[EMAIL PROTECTED]>
wrote:

>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to