$.getJSON( "http://rate-exchange.appspot.com/currency?from=RUB&to=KZT&q=1", function( data ) {
$("#out").html(data);
});
$.ajax({
type: "get",
url: 'http://rate-exchange.appspot.com/currency?from=RUB&to=KZT&q=1',
dataType: "jsonp",
success: function(data){
console.log(data);
},
error : function(data){
console.log(data);
}
});
http://rate-exchange.appspot.com/currency?from=RUB&to=KZT&q=1&callback=myFun
function myFun(obj){
console.dir(obj);
}
$.ajax({
url: 'http://rate-exchange.appspot.com/currency?from=RUB&to=KZT&q=1&callback=myFun',
dataType: 'jsonp'
});