1
How can I take only the property "name":"josimara"
in that code ajax
, I’m new in this area, thank you for your help.
<script src="http://www.habbid.com.br/assets/js/jquery-1.9.1.js" type="text/javascript"></script>
<script type="text/javascript">
var yql_url = 'https://query.yahooapis.com/v1/public/yql';
var url = 'https://www.habbo.com.br/api/public/users?name=josimara';
$.ajax({
'url': yql_url,
'data': {
'q': 'SELECT * FROM json WHERE url="'+url+'"',
'format': 'json',
'jsonCompat': 'new',
},
'dataType': 'jsonp',
'success': function(response) {
console.log(response);
document.getElementById("test").innerHTML = JSON.stringify(response);
},
'error': function(error) {
document.getElementById("test").innerHTML = "error";
}
});
</script>
<span id='test'>nothing</span>
you want to get the information from
var url
?– rLinhares
Our friend Sergio has already given the solution
– Rafael Augusto
This @rLinhares
– Josimara