Retrieving data using javascript

how can i get this exchange rate from web service using htm and javascript?

alt text

Türkiye Dictionary = Turkey | Dünya = World | Son güncellenme = Date Last Updated

+1
javascript html web-services
Sep 02 '10 at 16:15
source share
2 answers

The European Bank provides a free daily exchange rate for the most common currencies traded against EURO. XML format.

http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml

You need to make a page on your server that will call the xml above, parse it and return the values.

There is a PHP example of such a page: http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html
The result of this example is text, but I think sending JSON instead will make it easier to handle javascript in the browser.

+1
02 Sep '10 at 20:22
source share

If you find the exchange rate for the Internet service, you need to configure the proxy service on your own website to call him and return this data via json to your page. An easy way to get json data on your page is probably to use jQuery.

+1
02 Sep '10 at 16:19
source share



All Articles