Quantcast
Channel: Twitter feed using jQuery - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by ryan for Twitter feed using jQuery

$
0
0

Your code wasn't using JSONP and therefore being denied by cross domain restrictions. I've modified the request and it works now. Here's the code and here's the fiddle

$(document).ready(function () {    var k = "http://api.twitter.com/1/statuses/user_timeline.json?screen_name=Twitter&include_rts=1&count=5&jsoncallback=";    $.ajax({        dataType: 'jsonp',        url: k,        success: function (data) {            $.each(data, function (i, item) {                $("#tweetFeed").append("<div class='tweetCloud'><div id='tweetArrow'></div><div id='tweetText'>"+ item.text +"</div></div>");            })        }    });});

Your imgur link in the CSS was 404'ing so I commented that out. Also, linkify() is not a method. Perhaps you forgot to link some additional library. Lastly, your link to the droid font was improperly embedded on jsfiddle.


Viewing all articles
Browse latest Browse all 2