PDA

View Full Version : javascript currency converter


kjwan
08-14-2003, 06:00 PM
I was wondering if any of you can help me create a currency conversion using javascript so that the conversion is automatic and the conversion rate is stored in a separate .js file.

I have a site where I'd like to display two currencies side by side (Canadian and US) where the Canadian value is standard and the US value is calculated.

Any assistance would be greatly appreciated.

kjwan
08-14-2003, 06:05 PM
Before anyone tell me I should search the web, I just spent an hour trying to find something with no luck. Various javascript sites and nothing about conversions/calculations/money, etc. that would apply to what I need.

scoutt
08-14-2003, 06:21 PM
like this

http://www.snippetlibrary.com/viewhtml.php?id=5&kid=19&siteid=492

you didn't find anything ? I found 107,000 sites
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=javascript%3A+currency&btnG=Google+Search

kjwan
08-14-2003, 06:50 PM
Thanks for the tips. You actually showed me a method of searching I've never used before, as well as a new site I've never seen before.

You learn something new everyday.

kjwan
08-14-2003, 08:12 PM
Okay, so now that I've gone through a bunch of the links, I've discovered that they are pretty much the same as the ones I found previously...ones where you type in a value, hit "convert" and the converted value is spit out. This is not what I'm looking for. Any other suggestions?

scoutt
08-14-2003, 09:43 PM
then you will have to write something that you want. there is a lot of stuff out there so if you don't fine what you want then more than likely it is not out there. my suggestion is to piece some together to make it work how you want.

if you have troubles we have a good javascript crew here that can help.