|
Rank: Starting Member
Groups: Registered
Joined: 3/12/2003 Posts: 2 Location: ,
|
The solution jc has provided for multi-currency support is just what I've been looking for, but I found a bug in the code that is easily fixed. If you select a currency other than the first one (US Dollars) then the appropriate amount is displayed. However, if the user then clicks the browser's Refresh button then the combo box is reset to US Dollars but the amount remains unchanged, ie it does not display the US dollar amount.
In my web page (which I haven't uploaded yet, but will do so shortly) I have fixed this by changing: <BODY> to: <BODY onLoad="document.currency.a3.value=cost[0];"> (using the form and field names supplied)
The amount field now gets refreshed to the US dollar amount to match the refreshed combo box value. I have only tried this with IE 6.0.
Mike
|
|
Rank: Starting Member
Groups: Registered
Joined: 12/24/2002 Posts: 6 Location: ,
|
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"> Originally posted by jc[br]take a look at http://www.newscoop.co.uk/paypal.htm for a solution <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote"> Thanks Mike, the code has been updated to fix the 'refresh page' problem.
|