I'm trying to parse the entries in a Google Calendar feed but so far I haven't been able to retrieve the title, I was hoping someone would give me a suggestion. From what I see in firebug I can't understand why the following is not working, since I loop through the entries with the each method like follows:
$.getJSON("https://www.google.com/calendar/feeds/cide.edu_sm151i2pdhu2371vq8hamcver4@group.calendar.google.com/public/full?q="+encodeURI($(this).val()), {"alt" : "json"}, function(data) {
$.each(data.feed.entry, function(i, entry) {
var key = entry.gd$when[0].startTime.substr(0, 10);
if(key in SelectedDates == false) {
SelectedDates[key] = [];
}
else {
var titulo = escape(this.title.$t);
SelectedDates[key].push(titulo);
}
});
});
I define SelectedDates as an array earlier, but whenever I make the request, the SelectedDates array contains the keys alright, but only blank arrays in them, like follows: 2014-02-04 []
I wish I could grasp how to pass the title of the event to the object.