ajax 経由でフィードを解析しようとしましたGoogle Alert
が、例外が発生しました。これは私が試したものです:
$(document).ready(function () {
$.ajax({
url: 'http://www.google.com/alerts/feeds/01662123773360489091/16526224428036307178',
type: 'GET',
dataType: "xml"
}).done(function(xml) {
$.each($("item", xml), function(i, e) {
$("#results").append($("enclosure").attr("url").text() + "<br />");
});
});
});
しかし、私は得る:
XMLHttpRequest cannot load http://www.google.com/alerts/feeds/01662123773360489091/16526224428036307178. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
何か助けはありますか?
PS: ajax と jquery による RSS フィードの解析に関するいくつかの投稿を既に読みましたが、どれもうまくいきませんでした。