I'm trying to make a twitter feed that shows 5 tweets by using jQuery to parse a JSON file, provided by twitter. I've made jsFiddle over here.
$(document).ready(function () { var k = "http://api.twitter.com/1/statuses/user_timeline.json?screen_name=Twitter&include_rts=1&count=5"; $.getJSON(k, function (data) { $.each(data, function (i, item) { $("#tweetFeed").append("<div class='tweetCloud'><div id='tweetArrow'></div><div id='tweetText'>"+ item.text.linkify() +"</div></div>"); }); });});The tweets must outputted by the jQuery code in the following way:
<div class="tweetCloud"><div id="tweetArrow"></div><div id="tweetText">tweet text</div></div>Only the text of the tweets need to be used.
As you can see in the jsFiddle, no tweets are displayed, and I don't know why. I don't have much experience with jQuery, and practically none with JSON, so I hope someone can give a clear explanation why this doesn't work.
Thank you.