O'Reilly logo

Developing Responsive Web Applications with AJAX and jQuery by Sandeep Kumar Patel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Developing our currency converter

In our application, we will provide a feature for currency conversion in the shopping cart. This will help the end user to compare the total cost with other currencies. For this reason, we will create a jQuery template that has a drop-down menu that contains a list of the currencies supported by the API. When a user selects one of the currencies, he or she makes an AJAX call to find the equivalent value of the total amount of the shopping cart in that currency type. To build this converter component, we have to go through the following steps:

  1. Building the currency list dropdown.
  2. Processing the conversion request.

Building the currency list dropdown

In this section, we will develop a dropdown with all the currencies ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required