Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

>> REGISTER NOW TO START POSTING

1. Form - Calculation problem

See the form on: baumans.eu/order/

There are 10 rows of drop-down menu's. A calculation will only be made if you select all the drop-down menu's in one row. Try it. :-)

This question is about the drop-down menu's below "B, mm" and ""H, mm". As they're the main thing for the calculation. This calculation should calculate the price by taking steps of 200 mm. And, in the current way it calculates 200 as 200, 201 as 200, 399 as 200, 400 as 400. But, it should calculate 200 as 200, 201 as 400, 399 as 400, 400 as 400.

The problem is probably situated in: baumans.eu/order/main.js

I tried to change it myself. But, it seems, I don't understand enough from programming to solve it. Please, help! :-)

2. Re: Form - Calculation problem

Is this javascript? This is a java forum.

3. Re: Form - Calculation problem

the calculation is in this file: baumans.eu/order/main.js

so, I thought it should be Javascript.. am I wrong..?

4. Re: Form - Calculation problem

Yep, you are right, it should be a JavaScript app. I suggest that you Google for a JavaScript forum and ask your question there, not in a Java forum such as this.

ham-hamster.jpg

5. Re: Form - Calculation problem

ahaa.. you see.. now you understand how few I know about coding.. I really assumed it's the same.. thanks for the help.. :-)

6. Re: Form - Calculation problem

Best of luck!