Skip to content

Instantly share code, notes, and snippets.

@ayrton
Created April 10, 2012 14:50
Show Gist options
  • Save ayrton/2351922 to your computer and use it in GitHub Desktop.
Save ayrton/2351922 to your computer and use it in GitHub Desktop.
TypeError
twfbCounters = ->
$twitterFacebook = $('#twfb')
$.ajax {
url: 'http://api.twitter.com/1/users/show.json',
data: 'screen_name=zeptojs',
dataType: 'jsonp'
success: (data, status, xhr) ->
$twitterFacebook.html(data.followers_count)
error: (xhr, errorType, error) ->
$twitterFacebook.html('Unkown')
}
twfbCounters = ->
$twitterFacebook = $('#twfb')
$.ajaxJSONP {
url: 'http://api.twitter.com/1/users/show.json?callback=?',
data: 'screen_name=zeptojs',
success: (data, status, xhr) ->
$twitterFacebook.html(data.followers_count)
error: (xhr, errorType, error) ->
$twitterFacebook.html('Unkown')
}
@ayrton
Copy link
Author

ayrton commented Apr 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment