Unit Converter
Oct 1, 2004Here 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 RepliesHere 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 RepliesI 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 RelatedI 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]....
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.
I have a shopping cart and i want to find the previous text box value.[code]
View 1 Replies View Relatedi 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?
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.
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]....
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]....
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]...
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]....
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 RelatedI 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]...