| ||||||||||||||
|
The Personal Currency Assistant easy to customize, primarily because our computers do the work, serving up both the input and the output pages. All you have to do is code your page to call the service properly.
However, this page is intended for people with at least a basic understanding of basic HTML, since it involves passing HTTP arguments in the creation of links.
|
Automatically Filling In the Amount and Currencies
In many situations, it is desirable to automatically fill in the amount and/or currencies in the Personal Currency Assistant. This makes it faster and easier for customers to use, and cuts down on input errors.
For example, the webmaster of a U.S. website might want to automatically pass a "From" currency of US Dollars, since that is the sale currency of their goods. Additionally, that same webmaster might want to also automatically pass the Amount field so that it shows a single price or the total of a shopping basket.
|
Important: These instructions should be pretty straightforward to people familiar with HTML and forms. If you need assistance, please use the Internet as your support resource. We regret that we cannot guarantee technical support for a free service whose primary components are off of our server and outside of our control. |
Syntax
The PCA is customized by calling a the special PCA launch program with URL variables. The first variable is preceded by a question mark (?), and all subsequent variables (if used) are preceded by an ampersand (&). The six variables that can be passed are:
| To suggest an amount, use: | AmountSet=value |
| To hardwire an amount, use: | Amount=value |
| To suggest the "from" currency, use: | FromSelect=value |
| To hardwire the "from" currency, use: | From=value |
| To suggest the "to" currency, use: | ToSelect=value |
| To hardwire the "to" currency, use: | To=value |
Note that you cannot suggest and hardwire values for the same property. For example, Amount and AmountSet are mutually exclusive.
|
Here are some examples of these features in action, along with the code that was used to generate them.
|
HTML Code: Result: (Try it out!) Click here |
|
HTML Code: Result: (Try it out!) Click here |
|
HTML Code: Result: (Try it out!) Click here |
Something like this might be useful to a web retailer to allow the users to quickly calculate a set price (in this case, 12.00 US Dollars) in their home currency.
|
HTML Code: Result: (Try it out!) Click here |
|