i would like to alert webservice JSON response from this url http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json&&callback=? , how to do this,any idea?
I tried this below , but its not working at all.
$(document).ready(function () {
var b = "http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json&&callback=?";
//var b= "http://finance.yahoo.com/connection/currency-converter-cache?date=20150307"; // or this url also
$.getJSON(b, function (e) {
alert(e);
});
})
UPDATE: An Error shown on browser console
XMLHttpRequest cannot load http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json&&callback=?. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://fiddle.jshell.net' is therefore not allowed access.