Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Foreign Currency

Status
Not open for further replies.

Kendel

Programmer
Joined
Apr 24, 2002
Messages
1,512
Location
US
Can someone please help me to setup the Currency Converter?

In a textbox, user will enter US dollar amount, then "OnBlur" I want to convert this amount into Canadian Dollars.

I found some websites for Currency Converter but don't know how to set this up.

Many Thanks.
 
I would appreciate if someone could help me to get some information on how to do this.

kendel
 
The OnBlur is a javascript function try forum216



Chris.

Indifference will be the downfall of mankind, but who cares?
 
It doesn't have to be a OnBlur, a Button is just fine. Anything that can do the conversion.
 
Ok
For asp you would need to get the form field value when the form is submitted, multiply it by the conversion rate then display it. Depending on how accurate you want it to be you may need to look up the latest rates from somwhere to get the conversion factor and then maybe write this to an included constants file once a day or use a global variable.

Personally I'm looking at using this; but there is also



Chris.

Indifference will be the downfall of mankind, but who cares?
 
The ideal solution is if user open my site from a foriegn country, the $$ will automatically be converted to the currency type of that country. I guest I have to by this peace of code from third party.
 
try setting the LCID in the session

_____________________________________________________________________
Where have all my friends gone to????
onpnt2.gif

 
hmm.. actually I think canada and the us default to the same so that may not help. worth a look into though

_____________________________________________________________________
Where have all my friends gone to????
onpnt2.gif

 
onpnt, what is LCID ? I remember there was a post in this forum asking people to test his region or currency or something like that... but couldn't find it anymore.
 
Hey onpnt, do you know where can I find that LCID table? The link to the LCID table in the article of 4guysfrommorolla is no longer exist. I searched on google but couldn't find it either.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top