2
I’m trying to return a weather forecast query via the http://www.previsaodotempo.org but I’m not succeeding. Where I’m going wrong?
$.getJSON('http://www.previsaodotempo.org/api.php?city=rio+de+janeiro', function(data){
$('.temperatura').text( "Temperatura:" );
}).done(function() {
$('.sucesso').text( "second success" );
})
.fail(function() {
$('.sucesso').text( "error" );
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<span class='sucesso'></span>
<span class='temperatura'></span>
Please complete your question, this very weak, bearing the rest of the code...
– Jeiferson
@Jeiferson what’s the question? I’m trying to query the URL and it’s failing, I want to know why this is.
– Paulo