views:

127

answers:

2

Hi Everyone, I want to add "currency converter" to my web site.

I have used javascript form currency-converter.com.

But I want a converter whose layout can be customizable.

Anybody help???

Thanks in advance.

A: 

I guess you can hook on the Google converter and display it as you wish by using cross domain ajax (search google)

Example:

<script type="text/javascript" src="http://www.ajax-cross-domain.com/cgi-bin/ACD/ACD.js?uri=(http://www.google.com/finance/converter?a=1&amp;from=USD&amp;to=GBP)"&gt;
</script> 
<script type="text/javascript"> 
    alert(ACD.responseText); 
</script>
Tzury Bar Yochay
funny, but just came across this one which show a The currency converter example using cross domain ajax!http://www.simple-talk.com/dotnet/asp.net/calling-cross-domain-web-services-in-ajax/
Tzury Bar Yochay
A: 

Your best bet is to hook into an existing one because those things change by the minute and you'll be forever tinkering with the exchange rates.

Evernoob