1

Ajax 呼び出しを介して Pinterest ボード フィードを取得しています。ただし、壁の変更は結果には表示されません。キャッシュを回避するための解決策を探しました。しかし、私はそれを実装するのに問題があるようです。

//url to the feed
var url = 'http://pinterest.com/' + this.options.username + '/feed.rss?nocache=' + (new Date).getTime();

///Google service
var api = "http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=" + encodeURIComponent(this.url) + "&num=" + this.options.limit + "&output=json_xml&callback=?";

これはエラーを引き起こします:

Uncaught TypeError: Cannot read property 'feed' of null

{"responseData": null, "responseDetails": "Feed could not be loaded.", "responseStatus": 400}

'?nocache='+(new Date).getTime() を省略した場合。キャッシュされたフィードが読み込まれます。

4

0 に答える 0