For some reason my json twitter parser isn't working?
Anyone got any ideas as to why?
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
function outputHtmlToDiv(tweet,i){
count = i + 1;
$('#wrapper #sidebar .profile').html('<img src="'+tweet.profile_image_url+'" alt="Pretty Klicks" />');
}
$(document).ready(function(){
var url = 'http://twitter.com/statuses/user_timeline/prettyklicks.json?count=1';
$.getJSON(url,function(json){
$.each(json.user,function(i,tweet){
outputHtmlToDiv(tweet,i);
});
});
});
</script>