Hi,
I'm trying to get the location data for events using the Calendar API
with Javascript. I seem to be having problems and it does not seem to
be pulling the data. On my webpage it shows up as "object Object". I
declared a variable called "location" which is set equal to the object
"entry" with the method getLocations(). Since getLocations() is an
array I put the variable inside a loop. See my code below.
var len = entries.length;
for (var i = 0; i < len; i++) {
var entry = entries[i];
var title = entry.getTitle().getText();
var location = entry.getLocations();
var startDateTime = null;
var startJSDate = null;
var endDateTime = null;
var endJSDate = null;
var times = entry.getTimes();
I'm not sure how to get the location data to display on my event.
Can someone please help me out?
Thanks,
Sam
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---