Q:

JavaScript currency conversions

I am learning JavaScript, and I would like to learn more about using JavaScript to handle money.  I understand that numbers have to be scaled before performing arithmetic on them.  The thing I'd like to learn more about is converting amounts of money from one currency to another.  For example, maybe the currency of U.S. is converted to another country's currency.  My problem is that I can't find any information on this subject.  I've found a few API's for currency conversion, but I have to pay before I can even use them.  I was hoping that there would be something like a tutorial, or maybe a currency conversion chart for developers which plainly describes the conversions.
Thanks in advance.  =P

A:

I advice you to use JavaScript + jQuery + AJAX + PHP + MySQL.
Since it is the matter of currency conversion, you should be aware of dynamic changes in exchange rates. So you should keep a database of updated exchange rates. You may use MySQL for this. Then you may pass the parameters to a server side scripting service like PHP or ASP. This script can be used to pass arguments to database and retrieve data from them. jQuery along with AJAX can be used to pass user input from HTML page to PHP/ASP script file. And the Task is done!
Here are some tutorials.
http://viralpatel.net/blogs/jquery-ajax-tutorial-example-ajax-jquery-development/
http://www.w3schools.com/jquery/jquery_ajax_intro.asp
http://www.freewebmasterhelp.com/tutorials/phpmysql
http://www.w3schools.com/php/php_mysql_intro.asp
http://www.tizag.com/mysqlTutorial/
Hope this helps.

