Quantcast
Channel: jQuery templates pulling in JSON feed from Twitter - Stack Overflow
Viewing all articles
Browse latest Browse all 2

jQuery templates pulling in JSON feed from Twitter

$
0
0

Im trying to get a Twitter feed , either using the search API or just using A standard JSON call Using the code below I just get a blank page. I have included all the correct jQuery elements and have tested it with the Flikr API (and have changed the relevant template parts)

<script>        $().ready(function() {            $(document).ajaxComplete(function() {                $("body").attribute({message: ""});            });            $.getJSON('http://twitter.com/status/user_timeline/ladygaga.json?count=10&callback=?', function(data) {                $.template("imageTmpl", $("#imagesTmpl"));                $.tmpl("imageTmpl", data, {                }).appendTo("#img_list");            });        });</script></head><body><article id="img_list"><script id="imagesTmpl" type="text/x-jquery-tmpl">            {{each items}}                {{if $index <= 4}}        ${$text}                {{/if}}            {{/each}}</script></article></body>

and ideas?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images