Advertisement

08.05.2008 at 02:11AM PDT, ID: 23621563
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Linked listboxes and currency exchange lookup

Asked by bogorman in Hypertext Markup Language (HTML), JavaScript

Tags: ,

Hi,
I have the following form on a webpage:

<FORM NAME="formMagOrder" ACTION="PaypalManageCart.html" onSubmit="AddToCart(this);">
   <table width="528" border="0">
          <tr>
            <td>Payment Currency </td>
            <td><label>
              <select name="select">
              <option value="GBP">GB Pounds</option>
                    <option value="Euro">Euros</option>
                    <option value="USD">US Dollars</option>
                    </select>
            </label></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
                  <td width="99">Number required </td>
                  <td width="293">Select type of subscription required </td>
                  <td width="114"><div align="center">Total</div></td>
          </tr>
                <tr>
                  <td><div align="center">
                    <input type="text" name="QUANTITY" id="QUANTITY" size="4"
                              onKeyUp="ChangePrice(this.form.SubType)">
                  </div></td>
                  <td><select name="SubType" onChange="ChangePrice(this)">
                    <!--NB DO NOT REPLACE '£' WITH &amp; AS THIS INTERFERES WITH OPERATION OF ChangePrice()-->
                              
                              <option value="UK">Faith Magazine: UK/N Ireland @ £22.00</option>
                    <option value="MSubEur">Faith Magazine:Europe(incl Eire) @ £25.00</option>
                    <option value="MSubSur">Faith Magazine:Surface Overseas @ £24.00</option>
                    <option value="MSubAml">Faith Magazine:Airmail Overseas @ £29.00</option>
                    <option value="MSubStu">Faith Magazine:Student Rate @ £15.00</option>
                    <option value="MSubSam">Faith Magazine:Sample Copy @ £4.50</option>
                  </select></td>
                  <td><div align="center">
                    <input type="text" name="totalPounds" id="totalPounds" size="10">
                  </div></td>
                </tr>
                <tr>
                  <td><div align="center"></div></td>
                </tr>
        </table>
   <input name="PRICE" type="hidden" id="PRICE">
                  <input name="ID_NUM" type="hidden" id="ID_NUM">
                  <input name="NAME" type="hidden" id="NAME">
                  <input name="SHIPPING" type="hidden" id="SHIPPING" value="0">
                  <br>
                   <input type="image" src="SubscribeNowUp.gif" value="Add To Cart" alt="Add To Cart">
 </form>

As you can see the first listbox contains a list of currencies and the second one contains a list of products (types of subscription). Each of the product listings contains a currency value at the end of the string.

What I would like to do is,

a) when the user selects a currency in the first listbox, a "lookup" is done for the current rate of exchange between the GB Pound value and the appropriate currency and the strings in the second listbox are then altered to display the appropriate values in the currency selected.

b) this page has its action set to another form "paypalmanagecart.html". paypalmanagecart.html has another form on it whose action is set to "paypalcheckout.html" and there is a form on that page which has a hidden field <INPUT type="hidden" value="GBP" name="currency_code"> for passing the currency to Paypal. If I want to change that in tune with the currency selected, I assume the only way would be to have THREE sets of pages for each currency
i) PaypalmanagecartGBP.html, paypalcheckoutGBP.html
ii) PaypalmanagecartEURO.html, paypalcheckoutEURO.html
III) PaypalmanagecartUSD.html, paypalcheckoutUSD.html
but I will then have to change the action of the form on the first page to call up the appropriate page, depending on the currency selected.

How can I do that, os is there a simpler way of doing it?


How can I do that?
Start Free Trial
[+][-]08.05.2008 at 07:05PM PDT, ID: 22166690

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.05.2008 at 11:56PM PDT, ID: 22167683

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 01:42AM PDT, ID: 22168173

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 02:54AM PDT, ID: 22168484

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 02:56AM PDT, ID: 22168504

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 03:19AM PDT, ID: 22168598

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 04:35AM PDT, ID: 22168994

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Hypertext Markup Language (HTML), JavaScript
Tags: HTML/Javascript, ie7, Mozilla
Sign Up Now!
Solution Provided By: mplungjan
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.06.2008 at 10:12PM PDT, ID: 22178032

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628