closed
Public

In Firefox, this JSON query “http://www.google.com/ig/calculator?h…” return “{lhs: “1 Euro”,rhs: “1.28900 U.S. dollars”,error: “”,icc: true}”.

So far so good. The problem is that when I use it in ForeUI and assign the JSON object to a property (Cambio), this is not updated. Can you help? Thank ́s.

4 answers

Hi Antonio,

The API you were using is JSON API instead of JSONP API. ForeUI only support JSONP API because your simulation is running on your PC,which has different domain than the API server.

You can find another API, or you can wrap this API as a new JSONP API, if you have a place to host your API.

#1

Seems someone already wrapped this API to JSONP API:

http://rate-exchange.appspot.com/curr…

You can use it directly, it is actually calling Google’s Currency Converter API, but it is JSONP API instead.

#2

Vivi thank you very much, now it works perfectly.

#3

Glad to know it works. You are welcome.

#4

This question is now closed