I am new to programming in general and am having problems getting data in my web application when I call the moviedb.org api. I use jquery and I read all the documents, even the cookbook, and I still try my best to do this work, I also checked my Google Dev Tools console and showed that the call was successful:
Status Code:200 OK [{"id":550,"name":"Fight Club","posters":[{"image":{"type":"poster","size":"original","height":1000,"width":675,"url":"http://hwcdn.themoviedb.org/posters/f8e/4b........
Here is my code:
<script> $.getJSON("http://api.themoviedb.org/2.1/Movie.getImages/en/json/ed7e2e092ca896037ce13d2bf11a08f1/550&callback=?", function(data){ $.each(data, function(i,item){ $("<img/>").attr("src", item.image).appendTo("#images"); }); }); </script>
I think I was fiddling with the callback function, any thoughts would be appreciated. Thanks in advance!
source share