Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    HTML Drop down menus and Java Applets

    I wasn't sure where to post this, as Java Applets can be seen within the HTML field, if this is the wrong section please feel free to move/remove it

    Anyway, I was thinking. I wanted to have a page with 2 drop-down menus with 2 options in each, along with a submit button.

    But it became harder due to myself being a beginner within html , that I wanted the 2 options within the drop downs to pass over variables of which would alter the Java Applet by parameters.

    I've included an annotated demo picture below, if you don't quite understand my notion, please take a look at it:


    ^Excuse some grammar mistakes, was in a hurry.

    Thank you a bunch

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,581
    Thanks
    23
    Thanked 644 Times in 643 Posts
    programming select and options is basic read:
    http://www.w3schools.com/tags/tag_option.asp
    then google for more info

    But I would use all four options in one select and use the onchange. This gives one select menu and eliminates the submit button.

    Code:
    <select id="myId" onchange="alert('you made your selection. Its number '+value);">
    <option>Choose One</option>
    <option value='1'>arial red</option>
    <option value='2'>arial black</option>
    <option value='3'>courier red</option>
    <option value='4'>courier black</option>
    </select>
    onchange should direct this to you applet.

  • #3
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sunfighter View Post
    programming select and options is basic read:
    http://www.w3schools.com/tags/tag_option.asp
    then google for more info

    But I would use all four options in one select and use the onchange. This gives one select menu and eliminates the submit button.

    Code:
    <select id="myId" onchange="alert('you made your selection. Its number '+value);">
    <option>Choose One</option>
    <option value='1'>arial red</option>
    <option value='2'>arial black</option>
    <option value='3'>courier red</option>
    <option value='4'>courier black</option>
    </select>
    onchange should direct this to you applet.
    Thanks a lot, I will try this.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •