View Single Post
06-09-2010, 03:26 PM
Del33t is offline Del33t
Status: I'm new around here
Join date: Jun 2010
Location: Canada
Expertise: Design
Software: Photoshop :)
Posts: 1
iTrader: 0 / 0%

Del33t is on a distinguished road

  Old  If, then, else...

So I'm trying to make this "script" where you are able to input numbers into the form, click the calculate button and with some javascript math it is able to use a formula to output the answer.

The calculations are for a milling machine which uses the formulas as a guide line for operating speeds. The answers are in specified units and the formulas differ depending on if you're using the metric system or imperial system.

Ideally (this is where I need help) there is 2 radio buttons at the top of the form which you can toggle to and from metric and imperial and in turn the formula being used would switch causing the answer to be in either millimeters or inches.

I was wondering if anyone could provide some insight into how I could go about this. My JS knowledge is probably a 0.2 on a scale of 1-10 so any help would be greatly appreciated. What I believe to be the answer is some if,else statements but any other suggestions are welcome. Thanks in advance =/

Hosted online:

Reply With Quote