Help writing code for drop down menus and/or radio buttons

Hey, new to the forums, fairly new to programming in Java. I want to put up a "Ebay store", on Ebay.... well I guess that's obvious. I want to make a menu that either incorporates "Drop-down menus" (preferred - see below) or radio buttons. I do not know how to code these or how to incorporate them with the Ebay interface so that the new options selected by the customer with automatically adjust the price of the item. All help is appreciated.

I'm guessing what you want to do has nothing to do with Java. It probably has more to do with JavaScript. You are probably going to have to learn a little HTML (Drop-down menus are really select boxes) and then some JavaScript to go along with it (onChange="javascript: doPriceChange();"). I have absolutely no idea about the EBay interface so this is all just a guess. Here's a google search for adding javascript to a select box.
http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=javascript+select+onchange

Similar Messages

  • Where can I get code for Drop Down Menus

    Where can I find html code for drop down menus?
    Can this be inserted as an html snippet?
    Thanks

    Cyclosaurus is the resident expert on java script. Search the forum for his posts in topics containing "drop down menu". Also Google "drop down menus" and you'll get a lot of sites with many types of menus and codes. I had trouble adding one via an HTML snippet and am still working on it just to learn the process.

  • Black dots in drop down menus and in previews.

    I just upgraded my Mac to 10.9.3 and i have these weird tiny little dots appearing in my drop down menus and when I open an image in Previews. Actually, some images just look crazy in Previews with giant squares all over them. Any idea how to fix this? I have this same operating system on an older computer at work w/out this problem.
    OS X 10.9.3, 2.8 GHz Intel Core i5

    Is it only Preview that you are seeing this problem? If no, then it could be a hardware issue. Make a Genius appointment. Troubleshooting and analysis are a free service at the Genius Bar.
    http://www.apple.com/retail/geniusbar/
    I am already running 10.9.3 so am not sure what good that would do
    Running the combo updater often fixes odd issues. It's easy to do and certainly don't hurt.
    MORE INFO ON WHY RUNNING COMBO FIXES ISSUES
    Apple updates available from the Software Update application are incremental updates. Delta updates are also incremental updates and are available from Apple Downloads (software updates are generally smaller than delta updates). The Combo updates contain all incremental updates and will update files that could have become corrupted.
    Combo updaters will install on the same version as they're applying--no need to roll back or do a clean install. So if you think you've got a borked 10.9.3 install from a regular update, just run the 10.9.3 Combo Updater on that system.
    "Delta" updaters can only take you from one version to the next. For example: 10.9.1 to 10.9.2. If somehow the 10.9.2 is missing something it should have, and that something isn't changed between 10.9.1 and 10.9.2 it will still be stale after the delta update.

  • Drop down menus and image loading

    Hi there,
    I have an idea on my site to display photos for consumers to purchase. What I have is 2 drop down menus, the first one has a list of the galleries, the second has a list of the photos. When you select a gallery a corresponding list of photos for that gallery appears in the second drop down menu. That part I've got under control. After that, the user is supposed to press a "Check Picture" button and the picture they have selected is supposed to come up in another small window so they can double check that they the photo they want is the one they are ordering. Firstly I wanted the photo to appear in an applet that I had at the top of the screen but that seemed WAY too difficult so I decided on just having it load up in a new window scaled down to just fit the pic.
    The code for the "Check Picture" button is this:
    <input type="button" name="Button1" value="Check Picture" onclick="WinOpen()">
    but I'm having trouble with the WinOpen() function.
    Because of the two drop down menus I've had to put this code in:
    var groups=document.doublecombo.example.options.length
    var group=new Array(groups)
    for (i=0; i<groups; i++)
    group=new Array()
    group[0][0]=new Option("-Select A Picture-")
    group[0][1]=new Option("")
    group[0][2]=new Option("")
    group[1][0]=new Option("Barrel Shed","photos/gallery1/barrelshed.jpg")
    group[1][1]=new Option("Cafe Jojo","photos/gallery1/cafejojo.jpg")
    group[1][2]=new Option("Close Up","../photos/gallery1/closeup.jpg")
    ...that I got from a tutorial (but of course I don't really understand it.)
    Is there a way that in the WinOpen function I can have something like...
    window.open("../photos/gallery1/"PicValue".jpg","DisplayImage","menubar=no");
    and then down with the options part I can include a value that corresponds to each picture.
    ...or am I going in the completely wrong direction and there is a much easier way that somebody knows of.
    Any help would be greatly appreciated.
    Regards
    Peter

    Not too sure as this is a JavaScript question but I'll give it a shot.
    You should try to get the value (which appears to contain a URL) from the second drop-down form element. Not sure what it's called but if you look at the second select element it should have a name associated with it (I've assumed it's called example2).
    url = document.doublecombo.example2.value;
    window.open(url, "Display Image", "menubar=no");But as I said, I'm not sure.

  • Drop down menus and swf files

    Here's the site:
    http://www.oldshoecreative.com/CLS/
    In IE, I cannot seem to get the drop down menus to appear in
    front of the swf files that runs below them. I've tried the "wmode"
    and "transparent" settings which work fine in Firefox, but I can't
    get it right in IE. Any help would be appreciated.

    I had to insert code seperately for IE and one for other
    browsers. Here's the code:
    <div id="webflashxmedia"><!--[if IE]>
    <script type="text/javascript">sg_ie_no_click_2(
    '{object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    width="765" height="141" } {param name="movie"
    value="clsmedia/webflash.swf" /} {param name="wmode"
    value="transparent" /} {param name="bgcolor" value="#FFFFFF"
    /}{/object}');</script> <![endif]-->
    <!--[if !IE]> <-->
    <script type="text/javascript">
    AC_FL_RunContent(
    'type','application/x-shockwave-flash','data','clsmedia/webflash.swf','width','765','heig ht','141','wmode','transparent','bgcolor','#FFFFFF','movie','clsmedia/webflash'
    ); //end AC code
    </script><noscript><object
    type="application/x-shockwave-flash" data="clsmedia/webflash.swf"
    width="765" height="141"><param name="wmode"
    value="transparent" /><param name="bgcolor" value="#FFFFFF"
    /><param name="movie" value="clsmedia/webflash.swf" />
    </object></noscript>
    <!-- <![endif]--></div>

  • DW Drop Down Menus and IE 7.0

    Hello Folks,
    This is my first post here, and I really understand very
    little about web stuff, so I need someone to walk me through this
    stuff, if you'd be so kind.
    I have drop down menus I created in Dreamweaver 8.0. Most of
    my pages are validated by
    http://validator.w3.org, and
    yet when a visitor views them in Internext Explorer, the drop down
    menus don't display correctly. I'm on a Mac and can't check it
    myself, but a couple of folks have verified it for me. Is there
    something I can do to fix this without a major overhaul? The menus
    work correctly on Safari, Firefox, IE 5.5 and an old version of
    Netscape I happen to have here.
    Skolai
    Trip
    The same problem with my
    Stock
    Photography Site.
    If someone could help me out I'd really appreciate it. I
    looked around on the web and a few references to this problem, but
    I can't seem to find any solution. I didn't fnd hardly any
    reference to it here in these forums.
    Thank you.
    Cheers
    Carl Donohue

    Same problem on PC Firefox and IE7
    Actually worse in FFox - the buttons don't show up until you
    mouse over the
    actual top level text link. But the dropdowns do work. IE7,
    the buttons
    show, but the dropdowns do not show a link, just a dash (-)
    It could be something in the js - I notice this in the code
    -location
    name of file location...
    so not sure whether it's the dash in that string causing an
    issue or not...
    don't know enough js to help with that. Are you using a
    leading dash before
    you enter the text link ?
    There is also way too much code to go through to troubleshoot
    sorry. I
    would seriously consider usng another menuing system :-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    "CarlD" <[email protected]> wrote in message
    news:f15dsg$eq4$[email protected]..
    > Hey Folks,
    >
    > That was quick!
    >
    > Thanks for the replies. I remember reading some stuff n
    these forums about
    > a
    > year ago when I set the menus up that DW menus had al ot
    of problems. I
    > even
    > went painstakingly through the Project Vii stuff, but
    culdn't make that
    > work at
    > all. In the end, I got the DW menus working fine. That
    is, until someone
    > sent
    > me a screen capture of how they seemed to work in IE 7.0
    .. when the
    > little
    > drop down box appears, it has no text in each of the
    appropriate bars. But
    > when
    > scroll over a bar, the appropriate text and link comes
    up just fine - it's
    > only
    > the initial Mouse Over function that the text in the
    bars doesn't show up.
    > And
    > it does, as far as I can see, only have a conflict with
    IE 7.0.
    >
    > I'll look at the link Darrel provided and also do some
    research on the
    > spry
    > drop downs .. thanks.
    >
    > If anyone else has an idea for a quick fix, that'd be
    great too. Would an
    > upgrade to DW CS3 make a difference?
    >
    > Thank you.
    >
    > Cheers
    >
    > Carl
    >

  • Drop down menus and flash

    Here's the site:
    http://www.oldshoecreative.com/CLS/
    In IE, I cannot seem to get the drop down menus to appear in
    front of the swf files that runs below them. I've tried the "wmode"
    and "transparent" settings which work fine in Firefox, but I can't
    get it right in IE. Any help would be appreciated.

    I have the same problem and Í can't find the solution
    for this.

  • Help with actionscripting multiple drop-down menus

    So I have 3 different drop down menus that I want to use, and I want them to all work together so that if I have drop down menu number one open, the 2nd menu will drop down while the 1st one is still down.
    (I'm using Flash cs3)
    Here are some screen shorts:
    Layers: http://gyazo.com/3f24c53d5b91b7edb7fbbb1e6aa99c7c
    First action: http://gyazo.com/320857b1a6a94ba3fef153d1beb4ad6c
    Second action: http://gyazo.com/052bf8f1d673d533afc9b11488634869
    Stage before opened: http://gyazo.com/698353db25de7e589126a8800d7fdb25
    Stage opening up: http://gyazo.com/f905b9f20ee7b6205a978e304c27b934
    I'm relatively new to actionscripting all together, and I'm not a great programmer either. I'd greatly appreciate any help, I'm completely stuck and have no idea what to do.
    Thanks!

    fixed it

  • Drop-down menus and submitting completed forms

    Hi,
      I have two questions:
    1)  On my form I have multiple drop-down menus.  Is there a way to allow the user to return the field to its original blank state once an item is selected from the menu?  I noticed that I could add a choice to the menu that is simply spaces and when that line is selected, the field returns to blank.
    Is there a better way?  To reset the form following a "mis-click" on one of those menus would be frustrating for the user.
    2) We would like to set the form up so that when the user is finished, they can click on a button and the form is saved in PDF form and also with the XML data.  In reading about LiveCycle, it seems to me that we need to send it to a URL or by e-mail, but we would like for the user to be able to save it to their own hard drive.  Do you have any suggestions?
    Thanks,
    Michael H

    This bug still occurs:
    How to Reproduce:
    1.Download:
    http://jqueryui.com/resources/download/jquery-ui-1.9.2.custom.zip (or any other version)
    2.Find the default example for sortable:
    jquery-ui-1.9.2.custom\ development-bundle\demos\sortable\default.html
    3. Replace first li item to (just to add a html select)
    <li class="ui-state-default"><select><option value="1">1</option><option value="2">2</option></select>Item 1</li>
    4. The dropdown options will not appear(as if the dropdown is disabled).

  • Can you make drop down menus and can you make hyperlinks to parts of a page

    I was just wondering if it is posable to make drop down menus on iweb and if it is possible to make hyperlinks on the same page to another part of the page because the page is very long.

    if it is posable to make drop down menus on iweb
    No. You have to make them yourself. Search this forum :
    [dropdown menu|http://discussions.apple.com/search.jspa?objID=c188&search=Go&q=dropdown+menu]
    Here's how (to add all kinds of menus) :
    http://cafenoir.atspace.com/Maaskant/How_To.html
    http://cafenoir.atspace.com/roodhout/HowToDo.html
    Sample here :
    http://cafenoir.atspace.com/roodhout/
    if it is possible to make hyperlinks on the same page to another part of the page because the page is very long.
    Not in iWeb directly. Search this forum :
    [anchors|http://discussions.apple.com/search.jspa?threadID=&q=anchor&objID=c188&dateRange =lastyear&userID=&numResults=15&rankBy=10001]
    Here's how I do it :
    http://www.wyodor.net/Tutorials/Anchors

  • Variable drop-down lists according to radio-button input

    I need to restrict the display of drop-down lists according to a particular radio-button selection earlier on the form. Can I use a javascript call on the client side without linking to an external database along these lines:
    If radiobutton1 == 1
    then dropdownlist1 uses list1
    elseif radiobutton1 == 2
    then dropdownlist1 uses list2
    and so forth.
    Obviously the syntax is incorrect, but I need to know if it can be done before digging in further.

    Let's assume we have tree grouped radio buttons in a group of buttons, and a combo box object which displays a different list of elements depending of the chosen option.
    A very simple way to do it would be, for example, the following one:
    b [*] Radio Button Group - OnClick Event
    i // List of elements that will be loaded in the combo box object
    > var colorList = new Array("White","Blue","Red","Green");
    > var dayList = new Array("Monday","Tuesday","Wednesday","Thursday");
    > var tmarkList = new Array("Nike","Adidas","Reebook","Levis");
    i // ComboBox Object
    > var combo = xfa.resolveNode("Formulario1.ComboBox");
    i // Cleaning the combo...
    > combo.clearItems();
    > combo.addItem("Select one option to the list","");
    i // Filling the Combo
    i // "this" returns a button group where there are three radio buttons
    i // and the "rawValue" returns the selected index chosen in radio
    i // buttons.
    > switch(this.rawValue)
    > {
    > case "1":
    > for(nJ = 0; nJ < colorList.length; nJ++)
    > combo.addItem(colorList[nJ]);
    > break;
    > case "2":
    > for(nJ = 0; nJ < dayList.length; nJ++)
    > combo.addItem(dayList[nJ]);
    > break;
    > case "3":
    > for(nJ = 0; nJ < tmarkList.length; nJ++)
    > combo.addItem(tmarkList[nJ]);
    > break;
    >}

  • Adding a "blank" selection for drop-down menus under list items.

    A lot of people on this form are accidentally selecting items that shouldn't be selected and need to be able to change the drop down menu back to blank if they have made a mistake and selected a wrong drop down item in the wrong area.
    Please help,
    Thanks!

    Add an item to your Dropdown list with Blank as text and some value to it.
    When you want to rest to blank, just simply set the rawValue to the value against the blank text.
    For example if I add a blank text and assign a value "1" to it.
    Then in the code I may use like below to rest it to Blank Text.
         DropDown1.rawValue ="1";
    Thanks
    Srini

  • Code placement for drop down menu within an animated button

    I have a main menu comprised of 7 buttons; 6 of which are all
    straight forward with an animation. (The animation is that when the
    buttons are rolled over the button extends itself out to the right.
    On the rollout the button returns to its original state.) The 6 all
    function fine.
    The 7th menu button is the same idea but with the edition of
    a two button drop down menu that appears when the main button is
    rolled over. The roll over part is fine. My problem is moving the
    cursor off the main button to get to the sub-menu items without
    having them disappear once the cursor if off the main 7th button.
    Within the time line of the 7th button (all of the buttons
    are movie clip buttons) I put an invisible button, removing the
    sections over both the main button and the sub buttons. I have
    tried the following:
    (I should point out that the labels within the button for the
    animation are an _up, _over and _out states...the buttons animate
    out in the _over label and animate back to the original position in
    the _out label,)
    The code and where I have (unsuccessfully) tried placing it
    are as follows:
    1.) On the invisible button itself (within the main button):
    on (rollOver) {
    gotoAndPlay("_out");
    2.) On the Actions layer (within the main button):
    invisible_btn.onRollOver = function () {
    gotoAndPlay("_out");
    3.) On the Actions layer (on the main timeline...which is
    where the code for the other 6 buttons is and running as should):
    btnMusic_mc.invisible_btn.onRollOver = function () {
    btnMusic_mc.gotoAndPlay("_out");
    4.) Just a slight variation of #3 (still on the Actions layer
    of the main timeline):
    btnMusic_mc.invisible_btn.onRollOver = function () {
    brnMusic_mc.invisible_btn.gotoAndPlay("_out");
    The result for all four of these options has been the same.
    In rolling over the main button (btnMusic_mc) it does animate out
    as it should, exposing the two sub buttons. But moving the cursor
    off the btnMusic_mc neither allows me to reach the sub buttons nor
    does the btnMusic_mc animate back to its first position (as it
    should). It just snaps back into that position.
    Clearly I am missing something here. Any thoughts would be
    appreciated.

    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    No, it shouldn't and it doesn't. It should look like :
    Rates, Hours, Reservations
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    FAQ and Reserve - Training
    Here's the correct part :
    <select>
              <option value="">Rates, Hours, Reservations</option>
              <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    The <select> item was missing. And if you don't want the first line in the menu (Rates, Hours, Reservations) then don't enter it in the first place.
    BTW, it's not a dropdown menu. It's a selection list in a form.

  • Creating drop down menus in JSP using custom tags

    Hi, i am working on a JSP which has custom tags for displaying menubar and menus, now i want to have these menus converted into drop down menus, and the submenus displayed onmouseover event. I am getting solutions with pure html page calling javascript functions.But i dont need this, i want the work done by my TagHandler class which sends the output to output stream, which in turn is transformed in to actual HTML by a XSLT embedded in my JSP.
    Please help as i am new to custom tags, and desperately in need of help.
    If possible give some sample code or useful links.
    I will be highly grateful.
    Thankx in advance

    that's fine, but the tag has to, ultimately, generate the HTML/Javascript stuff like you've already seen.

  • Conditional validation for drop down list

    Hi all,
    I have been working on getting the conditional validation for drop down list to work but no luck. Here is my situation. I have a page with 'time' and 'source' drop down which contains a list of values along with null value. I have two buttons 'save' and 'close'. when a User clicks on 'Save' button, no checking should occur and the values filled in the form should be stored into the database. When a user clicks on 'Close' button, validation should occur and messages should be displayed saying 'values should be filled' . After the user fills each drop down list and hits close button, changes should be saved to the database. I used the technique posted by Jayashri and wrote the validation code in 'Close button action method'
    Here is my code
    public String btnClose_action() {
    // TODO: Replace with your code
    try {
    if (ddlTime.getSelected() == null || ddlTime.getSelected().equals("")) {
    FacesMessage message3 = new FacesMessage("Please select a value");
    message3.setSeverity(FacesMessage.SEVERITY_ERROR);
    getFacesContext().addMessage(ddlTime.getClientId(getFacesContext()), message3);
    return null;
    if (ddlSourceReq.getSelected() == null || ddlSourceReq.getSelected().equals("")) {
    FacesMessage message4 = new FacesMessage("Please select a value");
    message4.setSeverity(FacesMessage.SEVERITY_ERROR);
    getFacesContext().addMessage(ddlSourceReq.getClientId(getFacesContext()), message4);
    return null;
    sendMail("close");
    } catch (Exception ex) {
    return null;
    public String btnSave_action() {
    // TODO: Process the button click action. Return value is a navigation
    // case name where null will return to the same page.
    sendMail("save");
    return null;
    I did not set the 'required' property of both the drop downs and I dont have any message components in the page. How do I get this to work. Please help.
    Thanks,
    S

    Hi,
    Try this
    HTP.p('
    function validate_form_fields()
    var validation = true;
    if (document.forms[0].fld_1.options[document.forms[0].fld_1.selectedIndex] == null )
    validation = false;
    alert("Selection of FLD1 is mandatory.");
    if (document.forms[0].fld_2.options[document.forms[0].fld_2.selectedIndex] == null )
    validation = false;
    alert("Selection of FLD 2 is mandatory.");
    return validation;
    ');If the above does not work, it could be the definition of the your fld_1 select - options. Looks like they allow null values, and if null is not the first option then selectIndex = 0 will be a not null option by default.
    Moreover, the below has redundant condition as ==0 and &lt; 1 amount to the same thing. selectIndex cannot be negative.
    if ((document.forms[0].fld_1.selectedIndex == 0 ) || (document.forms[0].fld_1.selectedIndex < 1 ))Regards,

Maybe you are looking for