Unit Converter

Oct 1, 2004

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.

View 3 Replies


ADVERTISEMENT

Creating The Unit Converter?

Nov 23, 2010

I need to create a conversion tool. On one side of the tool are 4 form boxes. On the other, just text (not in form boxes). Under the covers, I have formulas for converting the numbers -- mostly basic math functions. So, the user types in numbers, clicks convert and the text changes.For some reason, I'm having a hard time getting this to go. How can I get the results of these calculations to show up as text within a DIV tag and not inside a form element? There are lots of examples of getting these calculations to appear within form boxes, but not within DIVs. This page is already using the Dojo toolkit for some other functionality, is this something I could leverage here to build my Javascript?

View 5 Replies View Related

Make A Unit Converter With Two Dropdown Boxes

Jun 19, 2010

I am trying to make a unit converter with two dropdown boxes, two textfields and a button. I want to enter a number into the first textfield, select a unit option, then select another appropriate unit option based on the first selection, press the button and get the result in the second textfield. What would be the best approach for this. So far I have:

[Code]....

View 5 Replies View Related

Library For Unit Conversion?

Apr 20, 2007

Is there a free js library for doing unit conversions? I am putting
together an app that needs to convert volume and weight, among
others. You'd think that one exists, but I have yet to find it.

View 2 Replies View Related

JQuery :: Find Previous Input Text Unit

Jun 2, 2011

I have a shopping cart and i want to find the previous text box value.[code]

View 1 Replies View Related

JQuery :: Tablesorter Not Properly Sorting On Numbers Having Unit Cm Appended?

Dec 9, 2011

i wonder if tablesorter does not properly parse the number of a table cell since it sorts a col of length values like this:

...
23 cm
115 cm
13 cm

May it be it takes only the very first digit into account? How to handle this without a core hack?

View 6 Replies View Related

Time/distance Converter

Mar 3, 2007

What i'd like is a simple converter to allow a user to input the distance travelled
in miles and the time in hours and minutes, the result being an average speed. What i'd appreciate is for someone to write the script for me and post here if possible.

View 11 Replies View Related

Yet Another Code For Pig Latin Converter?

Nov 14, 2011

I have to convert english to pig latin for an assignment. I am having trouble with my code.The assignment is that I have 2 separated functions on a page - one that does an individual word only and the other that will convert a whole phrase.I am getting error messages but I cannot figure them out. I guess I have banged my head against the wall too many times to count over this code.

Here is my code so far:

<html>
<head>
<script type="text/javascript" src="convert.js">

[code]....

View 14 Replies View Related

Passing Results Of This Sq Ft Converter To A Form?

Jun 15, 2011

Ive been trying to pass the results of this converter to a form on a seporate url - I have looked into this but cant seem to pass a "readonly" Var. have a 2nd field that would work out a percentage e.g a + VAT.

[
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

[code]....

View 4 Replies View Related

Ajax :: Write An Character Converter Using Php

Sep 23, 2011

i'm trying to write an character converter using php and ajax. i'm getting a really anoing error(uncaught TypeError). i've added screenshot of the error. and this is the xml i'm trying to read generated with php

<?php
$key = $_GET['key'];
header('Content-type:text/ xml').PHP_EOL;
$xml_output = "<?xml version="1.0"encoding="UTF-8"?>".PHP_EOL;
$xml_output .= "<Root>".PHP_EOL;
$xml_output .= "
[Code]...

View 4 Replies View Related

Create A Currency Converter Using A Drop Down Menu?

May 22, 2010

I need to create a currency converter using a drop down menu. Firstly i needed to do a regular expressions check to make sure only numerics are entered and I got that. The one thing im pretty confused on is how to do the calculations in the actual function.

<html>
<head>
<style type ="text/css">
@import url(style.css);

[code]....

View 5 Replies View Related

Put The Words 'Degrees Converter' Onto Page (as A Link)

Mar 7, 2011

I've been reading my JS book, have done a 'Degrees Converter' which converts fahrenheit into centigrade. There is a prompt box which automatically loads when the website is loaded. I am pressuming this is because I have my script in the body.How do I get my script as a link? I wanted to put the words 'Degrees Converter' onto my page(as a link), so that when people click the link, it loads up the prompt box.

View 3 Replies View Related

JQuery :: Converter That Needs A Decimal Place Limiter?

Jul 1, 2011

I am building a simple converter, converting between mm's and inches and I need to round off the results to 2 and 3 decimal places respectively.The code can be seen below can anyone show me how to get my results with decimal places:

<head>
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)

[code]...

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved