0

I want to extract some information by one JSON archive online

http://vectraconstrutora.com.br/living/revistas.json

That JSON shows some information (versions) of one magazine. At the moment, the magazine have 7 publications. Okay, for this, I need to do an loop to show all publications/versions of the magazine.

I tried to use AJAX + JSON, but something is going wrong.

$(document).ready(function(){
    $.ajax({
        type: "get",
        dataType: "jsonp",
        url: "http://vectraconstrutora.com.br/living/revistas.json",
    }).done(function (data) {
        alert("Done!");
    });
});

The alert don't show because something is going bad :(

I really need help :'(

user1978142
  • 7,965
  • 3
  • 16
  • 20
reidark
  • 858
  • 4
  • 11
  • 22
  • 1
    In addition to using `dataType: 'jsonp'` on your `$.ajax()` call, you need to be interacting with a JSONP web service on the server-side, *not* a static JSON file: http://stackoverflow.com/questions/2067472/what-is-jsonp-all-about – zxqx May 01 '14 at 22:10
  • if you want a workaround, you can use php to get contents on that url, _then_ `ajax()` your php url. that will get rid of the headache – user1978142 May 02 '14 at 00:45

0 Answers0