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


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Form - Calculation problem

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Form - Calculation problem

    Is this javascript? This is a java forum.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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. #4
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default 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. #5
    Junior Member
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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. #6
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: Form - Calculation problem

    Best of luck!

Similar Threads

  1. Problem with running a GUI Form
    By Pane87 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: August 4th, 2012, 12:48 PM
  2. Problem with running a GUI form
    By Pane87 in forum AWT / Java Swing
    Replies: 0
    Last Post: August 4th, 2012, 06:03 AM
  3. Problem with My Leap Year Calculation
    By LittleGirl in forum What's Wrong With My Code?
    Replies: 4
    Last Post: February 7th, 2012, 10:57 AM
  4. Problem with Bearing calculation appearing as NaN
    By welshcrossy in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 23rd, 2012, 11:23 AM
  5. Problem in a web that uses javascript in his login form
    By kamarilla in forum What's Wrong With My Code?
    Replies: 8
    Last Post: June 1st, 2011, 05:47 PM