graph_box
Contents:
- Description
- Instructions
- Examples
- Prologue
Please email tstock@x-rates.com about any issue related to this document or feature.
Description
graph_box is a simple HTML block with a form that can link to any graph page on the x-rates site. It is meant to be used by a webmaster that wishes to provide direct access to these charts from his site.
Instructions
There are two ways to include this HTML block. each one has its benefits and shortcomings:
- You can include a javascript tag on your page to pull the html
properties:
- easy to insert
- automatically updated if a currency is added or deleted;
- bugs are fixed by us;
- bugs are introduced by us;
- slower download for your site visitor;
- if our site goes offline, your box will not appear (feature?).
- You can look at the source (here) and copy it over to your page.
properties:
- not updated on-the-fly by x-rates;
- fully customizable by reverse engineering the HTML (layout, colors, base currency, target window or frame);
- faster download;
- always on, even if x-rates is down.
Example
simple Javascript include:
code:
<script language="Javascript" src="http://www.x-rates.com/s/graph_box.js"></script>
Prologue
Some issues about this feature:
- form closes in between </TD> and </TR> to get around extra line feed in some versions of IExplorer, this is a HTML nesting error.
- in the future, CSS class names need to be introduced for custom layout and colors. CSS table support is buggy in most browsers as of the date of this document.