I found this SO post about currency convertions.
I am new to JSON so my question is how to send and get the result from this url into variables?
http://www.google.com/ig/calculator?hl=en&q=100GBP=?EUR
//this url above gives back this line under
{lhs: "100 British pounds",rhs: "115.538154 Euros",error: "",icc: true} //answer html
The url works on browser, so I tried to send by ajax call but got this error.
405 (Method Not Allowed)
Origin http://www.mysite.com is not allowed by Access-Control-Allow-Origin.
My ajax:
var req = new Request({
method: 'post',
url: 'http://www.google.com/ig/calculator?hl=en&q=100GBP=?EUR',
onSuccess: function(response) {
console.log(response);
}
}).send();
I am using mootools so no jQuery please.