Hi, I am a newbie I would appreciate a lot if you could help me.
I can retrieve the events from the calendar but then when I want to
retrieve the informations about description, place and time I can't.
For the title it's easy I just write getTitle().getText(), but how
do I do for the place and time?
I am using the javascript library. I set the projection of my calendar
to full.
it follows the code.
thank you very much,
gabri
<html>
<head>
<script type="text/javascript"
src="http://www.google.com/jsapi?
key=ABQIAAAASqVYC6SoB7YQHdFNwpv4dBQHVOjsOeW03m977MZjqo9tHIa-
LRR0l2MtYcfcDF_ZJLEmc_6T83w_fw">
</script>
<script type="text/javascript">
google.load("gdata", "1");
var myService;
var feedUrl = "http://www.google.com/calendar/feeds/
b2ns7jas9j46j4cukjpvhg98g4%40group.calendar.google.com/public/basic";
function setupMyService() {
myService = new
google.gdata.calendar.CalendarService('test');
}
function getMyFeed() {
setupMyService();
var query = new
google.gdata.calendar.CalendarEventQuery(feedUrl);
query.setOrderBy('starttime');
query.setSortOrder('ascending');
query.setFutureEvents(true);
query.setSingleEvents(true);
query.setMaxResults(10);
myService.getEventsFeed(query, handleMyFeed, handleError);
}
function handleMyFeed(myResultsFeedRoot) {
var eventEntries = myResultsFeedRoot.feed.getEntries();
if (eventEntries.length > 0) {
for (var i = 0; i < eventEntries.length; i++) {
var event = eventEntries[i];
// Print the event title of the matches
document.writeln(event.geTitle().getText());
}
} else {
// No match is found for the full text query
alert('no events are matched from the query!');
}
}
function handleError(e) {
alert("There was an error!");
alert(e.cause ? e.cause.statusText : e.message);
}
google.setOnLoadCallback(getMyFeed);
</script>
</head>
<body>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---