While working on retrieving data from a Google Doc spreadsheet using Angular's $http, everything seems to be functioning well except for a cross-domain issue with IE9. An 'Access is denied' Error keeps popping up.
Below is the code snippet for my Angular service (remember to replace the docID in the Google Doc URL):
app.factory('Messages', function ($http, $q) {
var googleDoc = 'https://spreadsheets.google.com/feeds/list/*docID*/od6/public/values?alt=json';
var Messages = {
all: function() {
var defered = $q.defer();
var messages = [];
$http.get(googleDoc).success(function(data) {
for (var i = 0; i < data.feed.entry.length; i++) {
messages[i] = {
'name' : data.feed.entry[i].gsx$name.$t
}
};
defered.resolve(messages);
});
return defered.promise;
}
};
return Messages;
});
I have attempted several suggested solutions to make it work on IE9 but haven't had any luck so far. Any insights or ideas would be greatly appreciated.