if (eventEntries.length > 0) {
for (var i = 0; i < eventEntries.length; i++) {
var event = eventEntries[i];
var date = event.getTimes()[0].getStartTime().getDate();
// Print the event title of the matches
document.write('Event title = <a href="'+ event.getLink
().getHref() +'">' + event.getTitle().getText() + '</a>');
document.write('<br/>Event date = ' + date);
}
} else {
// No match is found for the date query
document.write('no events are matched from the query!');
}
This code doesn't work tough it comes from the sample javascript API.
I juste added the link and the date and the event.getTimes()[0] is
undefined in FF3 & IE.
So where i'm wrong please.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---