From d6fd147901d36328fcdad64ece1fe75324334870 Mon Sep 17 00:00:00 2001 From: Andrew Reid Date: Sun, 28 Oct 2012 20:27:02 +1030 Subject: [PATCH] Resolves Access-Control-Allow-Origin CORS issue preventing JSON being loaded --- javascript/jquery.twitter-ticker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/jquery.twitter-ticker.js b/javascript/jquery.twitter-ticker.js index d551d11..6b12aae 100644 --- a/javascript/jquery.twitter-ticker.js +++ b/javascript/jquery.twitter-ticker.js @@ -139,8 +139,9 @@ var getNewTweets = function () { $.ajax({ url: 'http://api.twitter.com/1/statuses/user_timeline.json', - dataType: 'json', + dataType: 'jsonp', data: { + callback: '?', screen_name: options.screen_name, count: options.items, since_id: $('li:first', twList).data('id')