Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4062624
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:37:20+00:00 2026-05-20T15:37:20+00:00

I’m new to JSON & am having a hard time trying to get my

  • 0

I’m new to JSON & am having a hard time trying to get my head around it. I found a cool library called Tempo ( https://github.com/twigkit/tempo/ , http://twigkit.github.com/tempo/ ) that seems to make working with JSON much easier but I still cannot get it to work on my simple example using Dribbble’s API. Can anyone point me in the right direction?

I have created a fiddle at: http://jsfiddle.net/mrmartineau/2uDZK/ which can also be viewed more easily here: http://fiddle.jshell.net/mrmartineau/2uDZK/show/ . You will see that I have tried a number of different things, none of which work… Also, I would like to know how I control how many results are displayed on the page if my example were to work – Dribbble has documentation here: http://dribbble.com/api (I am using the get_shots_list example btw: http://dribbble.com/api#get_shots_list)

I think I have an inherent misunderstanding of how to handle a JSON feed (if that’s what you call it) so I would appreciate someone setting me straight.

Many thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:37:20+00:00Added an answer on May 20, 2026 at 3:37 pm

    Just a couple of minor things. This is how you would invoke Tempo with JavaScript (including adding a ‘loading’ icon’.

    $(document).ready(function() {
        var dribbble = Tempo.prepare('dribbble').notify(function(event) {
            if (event.type === TempoEvent.Types.RENDER_STARTING || event.type === TempoEvent.Types.RENDER_COMPLETE) {
                $('div#dribbble').toggleClass('loading');
            }
        });
        dribbble.starting();
        $.getJSON("http://api.dribbble.com/shots/popular?callback=?", function(data) {
            dribbble.render(data);
        });
    });
    

    And here’s a template showing dribbbles and player information. Notice that we render the entire JSON response (data), and use a nested template (data-template="shots") to render each shot. This allows you access things like the {{found}} variable.

    <div id="dribbble">
        <h2>{{total}} found</h2>
    
        <ol id="dribbbles">
            <li data-template="shots">
                <img src="{{image_url}}" height="150" width="200" />
                <h3><a href="{{url}}">{{title}}</a> ({{views_count}})</h3>              
    
                <img src="{{player.avatar_url}}" class="player" height="30" width="30" />
                <p class="name">Created by <b>{{player.name}}</b>, {{player.likes_received_count}} likes.
                </div>
            </li>
        </ol>
    </div>
    

    You can see this (styled) in action here: http://twigkit.github.com/tempo/examples/dribbble

    Good luck!
    Stefan

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I am trying to render a haml file in a javascript response like so:
We're building an app, our first using Rails 3, and we're having to build
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.