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 8 of 8

Thread: Function and radio Buttons in JAVA

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Function and radio Buttons in JAVA

    1.How to you validate radio buttons? in JAVA
    2.How do you create a function? in JAVA
    3.How do you assign a radio button answer to a variable? in JAVA
    4.How do you create a variable? in JAVA
    5.How do you create a function which checks the radio buttons? in JAVA
    Please Help me thanks


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Function and radio Buttons in JAVA

    Do you have some code you are having problems with? Post the code that shows the problems you are having.

    Take a look at the tutorial: http://docs.oracle.com/javase/tutori...ybigindex.html
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    learning2code (December 10th, 2013)

  4. #3
    Junior Member
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Function and radio Buttons in JAVA

    Thanks but Functions are confusing, are certain things needed?

  5. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Function and radio Buttons in JAVA

    There are no Functions in java. Are you asking about methods?
    See the tutorial: Defining Methods (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
    If you don't understand my answer, don't ignore it, ask a question.

  6. #5
    Junior Member
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Function and radio Buttons in JAVA

    well this is the code i have which uses a function to validate the rest of the code. I need to create a function to validate information. are there specific ways of doing this?
    how to validate a form

    function validateForm() {
    var result = true;
    var msg=””;

  7. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Function and radio Buttons in JAVA

    That is not java. It looks like javascript which is a different language.
    If you don't understand my answer, don't ignore it, ask a question.

  8. #7
    Junior Member
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Function and radio Buttons in JAVA

    It is java as at the top of the code it has been intialised as
    <script language="javascript" type="text/javascript">

  9. #8
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: Function and radio Buttons in JAVA

    javascript != Java. They are totally unrelated. Go find a javascript forum.

Similar Threads

  1. Replies: 1
    Last Post: December 5th, 2013, 09:44 AM
  2. Button and Radio Buttons not working!!!
    By rokere1 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: July 19th, 2013, 03:59 PM
  3. Help with radio buttons and results.
    By Bewitched1 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 3rd, 2011, 04:01 PM
  4. radio buttons stop working
    By tabutcher in forum AWT / Java Swing
    Replies: 2
    Last Post: March 5th, 2010, 09:28 AM
  5. [SOLVED] Using html Radio Buttons with Servlets
    By oss_2008 in forum Java Servlet
    Replies: 2
    Last Post: June 25th, 2009, 05:39 AM