Im trying to use this api that gives me a json. But I can't display any info. I got this code in Jquery:
$(document).ready(function(){
$("#search").click(function(){
var title = $("#words").val().replace(/\s/g,"+");
var url = "http://api.rottentomatoes.com/api/public/v1.0/movies.json?q="+title+"&apikey=ng6gbx7vdpwmyfwd7vp5g799" + "?callback=?";
$.getJSON(url, null, function(data){
alert(data.total);
});
});
});
Why? I have no idea.