programming we consider all important topic for knowledge about controls,web Services, JSON, Ajax, database, and interview related Question. In this and sql server tutorial blog we give many examples of jquery as like How Play YouTube Video in Your Website by URL, How to Play YouTube Videos in by using Jquery , Jquery Change div background on mouseover in , JQuery UI Datepicker (Calendar) etc.

Thursday, June 25, 2015

online currency converter by google API in

 Currency converter online by google API:

In one of my projects there is one module that requires a currency converter application. I am applying various techniques to convert the currency, such as storing the country name and related currency values in a database and retrieve them according to the related country but that is a very lengthy and complicated process.

Then after trying many options I decided to use a third party API to complete my requirement; I chose the Google API. So my intent is to write this article to help others that might me need to do the same type of task.

So let us start this with

Example Code of  currency converter:

Create a default.aspx page and place below code in Body

<head runat="server">
    <title>Stupid Codes | Currency Convert Online using Google API </title>
    <script src="" type="text/javascript"></script>
    <script src="" type="text/javascript"></script>
    <script src="JqoeryScript/JScript.js" type="text/javascript"></script>

and place below code in Body


    <form id="form1" runat="server">

    <p><b>Currency Convert in using google</b></p>

    Enter Amount:
    <input type='text' id='gp_amount' size='4' /><br />

    From Currency:
    <select id="gp_from"></select><br />

    To Currency
    <select id="gp_to"></select>

    <p><input type='button' onclick='gp_convertIt()' value='Convert' /></p>

    <b>Result :</b><label id="gp_converted"></label>

    <script type="text/javascript">gp_currencySymbols()</script>



Other Related Post:

1 comment: