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?
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.
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:
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.
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.
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">
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
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);
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.
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)
I have a problem getting the following simple example of "document.write" creating a script on the fly to work in all html browsers.
It works in I.E., Firefox, and Netscape 7 above. It doesn't seem to work in Netscape 4. Am I missing something with it? When I look at page source in Netscape 4 the script isn't even shown. Code:
I'm trying to create a function in JavaScript using Dreamweaver8 such that when a user hits the ' F1' key when a text box is selected a separate "pop-up" window will open, with text of my choice.
Does anybody have any pointers or even some source code? I use ASP on my server.
how you would piece together a variable name and then assign it a value. I want to create a hidden field and assign it a value based on the value of another variable
rote a bunch of Javascript classes for this framework I'm working on and want to be able to create instances of the class using just it's name string. For example: Given the following class
I am writing a function that alerts a user that they did not enter a password what change do I need to make to this code to correct my issue it isn't doing anything.
I have the last assignment that she wants us to do and I had to pull up another assignment that she wanted us to build upon( which is one of those coding without anything advance)
<html> <head> <title>
[code]....
now she wants us to do max <beta and then name the variables with if a<b and I don't know if I put that in the concatenation or what to name my variables!
i am fairly new to JS for which i am working jQuery but that is for later.right now i am not getting my table printed out when i put input type="text".
here is my code
[Code]...
moreover i m writing this code to later call in a dialog box. using jQuery. but for now why isn't my code being printed with input type. do i have escape "" inside "" like in php? can i make more hierarchy type html in JS, i see when i put the td in next line the code doesn't execute. i guess white spaces have some significance in JS?
I need some help creating a script. Forgive me for posting this in multiple forums, as I first posted this in the php forum, but I know it can be done with a client side javascript as well. So here goes. I need to create a form where I can paste a list of domain names, click submit (or even just on mouseout, etc.), and have the script then return me to a page (or update a select field on the same page) with the domain names formatted within html code hyperlinking to the name. For example, if I were to paste a list of
then click submit (or move my mouse out, [we're talking javascript here, right...]), it would return the following results, ready for me to then paste into my webpage:
I'd like to create a simple menu that when I mouse over one of the menus, the sub-menus show up below the main menu. Kind a like pop-down menu, except the sub-menus show up horizontally below the menu.
Menu1 Menu2 Menu3 | Sub-Menu1 Sub-Menu2 Sub-Menu3
I have searched a number of javascript sites to find such a code with no success. I suppose I could try to adapt a pop-down menu into this, but my javascript's knowledge is quite limited.
I've been thinking of an interesting project for learning javascript better, and decided I would have a go at creating a heatmap to show visitor activity on a site.
I have already written something which works out the percentage share of each link, but now I want to create something similar to that of the crazy egg heat map.
I just need a couple of starting pointers... to work out where a user clicks on a site, regardless of whether it is a link or not, i.e they click on a pic thinking it is a link or something, do I need to use coordinates?
Also, does anyone have any pointers on how to create the infrared style imagemap overlay?