PDA

View Full Version : Unit converter


neil9999
10-01-2004, 10:38 PM
Hi all,

Here is a unit converter. At the moment it does length and weight, both in imperial and metric measurements. I'll put up soon instructions on how to add more units/unit types.

Any comments/suggestions welcome,

Neil

EDIT - Scroll down for newest version.

neil9999
10-02-2004, 10:17 AM
New version: converts area units now, and sorts out a bug.

Neil

EDIT - Scroll down for newest version.

neil9999
10-02-2004, 10:53 AM
Just found another bug, make the first select box this:

<select id="uni" onchange="if(this.options[this.options.selectedIndex].text=='Select one'){alert('Please select one!'); this.options.selectedIndex=1;};cho(this)"><option value="">Select one</option><option value="3.28080">Length</option><option value="10.76400">Area</option><option value="0.00221">Weight</option></select>

Neil

neil9999
10-03-2004, 11:39 AM
New version, bug fixed, validation for entry field and unit selected ect.

Neil