Skip to content

Instantly share code, notes, and snippets.

@wengzilla
Created June 30, 2012 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wengzilla/3021716 to your computer and use it in GitHub Desktop.
Save wengzilla/3021716 to your computer and use it in GitHub Desktop.
ajax call
$.ajax({
type: "GET",
dataType: "jsonp",
url: url,
data: { access_token: "#{data[0].token}", count: 30 },
success: (response) ->
objects = response.data
for object in objects
# console.log JSON.stringify(object.images.low_resolution)
$(".carousel-inner").append("<div class='item' data-image='#{JSON.stringify(object.images.low_resolution)}'><img src='#{object.images.low_resolution.url}'></img></div>")
$($(".carousel-inner").children()[0]).addClass("active")
})
@nisargshah100
Copy link

success: (response) =>

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