Intelligent drop-down menu

hi all,
we have a need to implement an intelligent drop-down menu with JSP as
follows:
<select name = "myselect">
<option value = "1">ant</option>
<option value = "2">bee</option>
<option value = "3">butterfly</option>
<option value = "4">dinossaur</option>
<option value = "5">dog</option>
<option value = "6">elephant</option>
<option value = "7">fox</option>
<option value = "8">gorilla</option>
<option value = "9">octupus</option>
</select>
Now, the user would like to select dog by typing very quick d + o + g.
Using the standard drop-down menu with HTML4.0.:
a) when the user types d, the selection goes to dinossaur;
a) and when the user types o, the selection goes to octupus
b) and when g is typed goes to gorilla.
Question:
How can we implement an intelligent drop-down menu to allow users to direct select an item by typing quickly the first few letters?
What about XML and others?
thanks in advance for any assistance.
Trajano Roberto

hi makarand_k ,
the error is as follows:
Unable to open location: C:/basket/animals.html?keyword=Dog&animals=1 (The filename, directory name, or volume label syntax is incorrect)
the code is
<html>
  <head>
    <script>
      function Search( str ){
        if(str.length == 0)
          return;
        opts = document.dataForm.animals.options.length;
        for( i = 0; i < opts; i++ )     {
          if( str.toUpperCase() == document.dataForm.animals.options<i>.name.substr( 0 , str.length ).toUpperCase() ) {
            document.dataForm.animals.options<i>.selected = true;
            break;
    </script>
  </head>
  <body>
    <form name = "dataForm" action ="animals.html">
      <table>
        <tr>
          <td><input type = "text" name = "keyword" onKeyUp = "Javascript:Search(this.value)"></td>
          <td>
            <select name = "animals">
              <option value = "1" name="Ant">Ant</OPTION>
              <option value = "2" name="Bee">Bee</OPTION>
              <option value = "3" name="Butterfly">Butterfly</OPTION>
              <option value = "4" name="Dinossaur">Dinossaur</OPTION>
              <option value = "5" name="Dog">Dog</OPTION>
              <option value = "6" name="Elephant">Elephant</OPTION>
              <option value = "7" name="Fox">Fox</OPTION>
              <option value = "8" name="Gorilla">Gorilla</OPTION>
              <option value = "9" name="Octupus">Octupus</OPTION>
            </select>
          </td>
        </tr>
        <tr>
          <input type = "submit" value = "Submit">
        </tr>
      </table>
    </form>
  </body>
</html>

Similar Messages

  • Is there a way to create a drop down menu with an automatic answer dependent on what is chosen?

    Is there a way to create a drop down menu with an automatic answer dependent on what is chosen? An if-then statement perhaps?  I am looking to add over 100 drop down options and would like to have a message automatically pop up depending one which option they chose.  Thank you.

    Hi,
    You would use the skip logic to conditionally show form items based on the selection within the drop-down menu. Here's a link to a description of the feature in our help documentation:
    http://help.adobe.com/en_US/formscentral/using/WSd789abd336388b1642c7fce012da94afe4f-8000. html#WS0faeceb8c23f5d60-774f03e3131ddc76d7d-8000
    Regards,
    Brian

  • In the new Pages 5.0, what is the page break shortcut key. I cannot find the key as indicated on the drop down menu.

    in the new Pages 5.0, what is the page break shortcut key (it used to be the Fn + enter). I cannot find the (new) key as indicated on the drop down menu. Please help.

    Hi Bruce and fruhulda,
    ok, I found the keyboard viewer, it only shows the traditional symbol 'return'.  something like a sideway u-turn continued with the arrow under.  This is the Canadian or US keyboard. 
    btw thanks for your suggestion.

  • Trying to create a drop down menu in numbers...please help

    Hi
    Can anyone indicate how to go about creating a drop-down menu.
    Thanks in advance

    Hi Meela,
    Welcome to Apple Discussions and the Numbers 08 forum.
    Check page 66 of the Numbers User Guide supplied with your copy of iWork. The guide refers to them as "pop-up" menus, so a search using "pop-up" will be more successful than one using "drop down".
    Essentially the process is:
    Click on the cell to select it.
    Open the Inspector and choose Cell Format (icon is a cell containing 42)
    Click the Cell Format menu and select Pop-up Menu from the bottom of the list.
    Double click an item in the list to edit it. Click the + button to add an item, the - button to delete the selected item.
    Done.
    Regards,
    Barry

  • Mail can not open, blocked by drop down menu

    Mail will not open. Drop down menu says: To view this page you need to log in to area "www.outlookmail.com" on www.outlookmail.com:443 Then it asks for my name and password.
    I click cancel and the drop down exits and reappears. Do I have a virus? Now what?

    Hi Jo ann,
    I just got that on popping on my email saying the same thing" www.outlookmail.com:443" to sign in.
    what did you do to fix it? what is it -is it? is it a virus?
    can you please let me know what i should do
    I appreciate that, thank you.
    geraldsmagic from Ca.

  • Contacts drop-down menu blocked by on screen keyboard in text messages

    Whenever I draft a new text message I put the cursor in the contact box and type the first letter of the name of the person I am trying to contact.  If I have more than 3 people in my phone whose names start with that letter, the drop down menu becomes partially obscured by the on screen keyboard.  If I attempt to scroll down on the menu, it selects whomever I happen to press.  My attempts to minimize the keyboard have been futile.  I understand I can work around this by going into contacts and selecting someone to text, but the problem is pretty aggravating.  Please help!

    Want to contract me? You can follow me on Twitter @RobGambino
    Be sure to click Like! for those who have helped you.
    Click Accept as Solution for posts that have solved your issue(s)!

  • It won't let me share my movie. Nothing happens when I click "share" or even in the drop down menu. I don't get options. HELP! I need this video by tonight!

    I have worked with iMoive a ton and have never had an issue. I consider myself pretty computer savvy. This new iMovie is not my friend. It will not let me share my new video. I click on the project and click "share" like it says but I don't receive any further prompt. It literally does nothing. I tried the drop down menu and I see the "share" with an arrow indicating there are options but no drop down menu appears. I need this video by tonight to submit for work. HELP!

    I got it to share! No reloading iMovie!
    I do not have Mackeeper on my laptop
    I have the movie files on an external hard drive
    1. Close out iMovie
    2. Eject the external hard drive
    3. Start up iMovie
    4. Plug in the external hard drive
    5. Go into finder and double click on the folder containing the movie
    6. Select the movie as if to edit
    7. Share it!
    I hope this works for you too

  • Add value entered in a text box to drop down menu options

    hi everyone
    i am making a pdf form for medical imaging report. i have a text box where the users enters a number, i want this entered number to appear within a drop down menu options
    thanks

    Hi Alexander,
    I can explain you the details there is a list as you mentioned Newsletter with a column email in it you are right but for your answer ya i can use enforce unique values for that column but if i am using it it gives me an error in the next page what i want
    is just beside my text box to say that already registered user.I want that functionality that is what i meant.
    Thanks
    Eswar
    Eswar Chand Teki

  • Bookmarks toolbar changed from the right side of the drop-down menu to the left. How can I change it back on Firefox 4.0.1 for Mac?

    I just updated to Firefox 4.0.1. Some changes I don't like, especially that the Bookmarks toolbar opens to the left of the drop-down menu instead of the right. How can I change it?

    You may have bookmarks that have long title. Firefox 4 shows the full text of the bookmark name, so if it doesn't fit with opening to the right side the Firefox will open to the left side. You can scroll through the list and make the bookmarks with a long name shorter.
    * [[How do I use bookmarks?]]

  • Thanks to the super-users, and questions on backgrounds and drop-down menu

    Hi all.
    I've spent a fair amount of time perusing the archives, so I don't have to bother you all with the basic questions. Great thanks to Wyodor, Old Toad, Ethmoid and Cyclosaurus for their excellent and oft-repeated tutorials.
    With your help, I've figured out how to set up a personal domain name, modify my background image, and create a drop-down menu. (These were major accomplishments for a neophyte like me.) My primitive template can be seen here:
    http://www.monroekarate.org/dojo/Template.html
    And I am pretty happy with it. I have one problem, and one minor element that I'd like to fix.
    The drop-down menu was created following the excellent tutorial from the iWebfaq but I notice that although it looks perfect there is one malfunction. If you hover and try to select an element where there is no underlying content, it works fine. When you try to select a list item with underlying content, however, the drop-down disappears. Any idea why that happens or how I can fix it? I suppose I could just add a space buffer, but that is an inelegant solution.
    On a more trivial note, the background was actually supposed to be composed of two images. The top row was supposed to be a horizontal set of tiles (slightly darker in color) and the rest of the background was tiled in a second image, giving a gradient effect. I used the script Wyodor described here with repeat set to yes which gave me single-image tiling. Looks OK, but if I could get both sets of tiles used it would add substantial richness to the visual effect. Ideas?
    Thanks again for all your help to date, and thanks in advance for considering this issue!
    Cheers,
    Liam

    I appreciate your reply but those arrows were not the ones I was trying to describe. In the same box where you would type your web address on the far right is a small star and then next to it an arrow pointing down. If you click on this arrow, it normally drops down a list of the websites you commonly use. Or, if you are on a website ordering something, there might be a similar arrow that you need to select in order to choose which shipping you might want such as ground, next day air, etc., these are the kinds of arrows that are not working correctly now. Any ideas on these? Thanks for trying to help me.

  • Problem with checkbox and drop down menu

    I am using DW8 with PHP/MySQL.
    I made a insertion form and a couple of the fields are
    checkboxes and another is a drop down menu. Everything works fine,
    however, when I create an update form and the recordset calls the
    data it doesn't retain its values on those items.
    For example, if I checked a box when inserting the record and
    then call the data up for the update form, the box is not checked,
    making the user believe it was never checked in the first place.
    The same thing goes for the drop down menu. If I have 3
    options in the menu and someone selects the third one, when the
    update form is used it defaults to the first option automatically
    instead of actually calling up the original value selected.

    The fact that two scripts do not work together does not mean
    there is a bug in the RH script. It is simply that they were not
    designed by their respective developers to work together. This
    happens with multiple scripts in any html file.
    Try creating a new project and then importing just this topic
    into it. Does it still have the problem?

  • Autocomplete does not work (no drop-down-menu)

    Hi all
    I'm trying to setup the autocomplete-input, but it doesn't
    work. When I type anything into the textbox, the animated image
    beside the box shows activity and I see the submitted data from the
    backend in debug mode, but the drop-down-menu with the matching
    records does not appear.
    if I build a static list of possible choices in the
    cfinput-tag, it works.
    my cfc returns an array and this is serialized as JSON in the
    calling backend-template (see code below). In source code view of
    the html-page, I see lots of java-script and CSS inserted into the
    page.
    any ideas?
    stefan
    calling template:
    <cfsilent>
    <cfscript>
    //Get Query
    locationArray =
    application.addressDao.findLocation(url.term);
    </cfscript>
    </cfsilent>
    <cfoutput>#serializeJSON(locationArray)#</cfoutput>
    relevant part of CFC:
    <cfloop query="qLocations">
    <cfset arrayAppend(records, fPLZ & " " &
    fOrtschaft)>
    </cfloop>
    <cfreturn records/>
    form-page:
    <cfform action="" method="post" name="editForm"
    id="editForm">
    Dynamische Auswahlliste: <br />
    <cfinput type="text" name="ziplocation"
    autosuggest="url:ajaxLocationAutoComplete.cfm?term={cfautosuggestvalue}"
    autosuggestMinLength="3" maxResultsDisplay="10"><br
    />
    <br />
    </cfform>

    Rather a general answer I am afraid, as I can not see an obvious problem & solution:
    # Note for any one off problems with sites it is always worth clearing cookies for that site and cache [[How to clear the Firefox cache]] &[[Delete cookies to remove the information websites have stored on your computer]]
    # Try in safemode (see [[Troubleshoot Firefox issues using Safe Mode]]) that is accessible from your Firefox Button. (but at this stage do not yet try the reset)
    #* next try in safemode and also disable the java plugin that you have (Safe mode disables extensions not plugins)
    #* for info: note Java and Javascript are different animals: http://kb.mozillazine.org/JavaScript_is_not_Java
    # if the above do not help then try the Firefox reset, '''but''' be aware you will loose open tabs, extensions, and certain preferences, you may need to bookmark things first so you can find them again see [[Reset Firefox – easily fix most problems]]

  • Firefox 6. When right clicking a tab no drop-down menu appears. Why do I not have the option to pin, unpin, etc.

    I'm using Firefox 6 with all current updates. This is on a desktop pc running Windows XP (Service Pack 3).
    At some previous time I was able to pin tabs - I pinned three. Lately I do not have a drop-down menu when right clicking on a pinned or unpinned tab. The feature is just not there.

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • TS3276 the images (attachments) are automatically resized (smaller) when I send them to a customer. My email screen does not show a drop down menu box where you can leave as actual size. Is there a setting elsewhere that can be set.

    Any suggestions on problem I have. I receive images, say a file that is 3 mgs through email on Safari mail and when I try to resend it or forward it or any other larger file, when it sends the file is reduced by about 1/3. My screen does not show and drop down menu with a feature to keep actual size or reduce that is suggested when I looked up solutions to the problem.  I can't find a setting anywhere in mail that I can change to make sure my files are kept at actual size. I figure a setting got changed -don't know how - but it happened about a month ago. Caused problems as I work in graphics can't send files to clients as they come out too small. Any suggestions on how to fix.
    Thanks

    What email program are you using? And what do you mean by "Safari mail"?

  • How can I organize data by name in a drop down menu?

    I created a spread sheet with several drop down menus. The problem I am having is how to organize my data by name. Every new entry is at the bottom of the drop down and can't be moved to a different location. This gets very confusing as I add more names to the drop down cell. In this case my entries consist of Chemical names that make it very hard to recognize or to locate once I open the drop down menu. Any suggestions?

    Hello
    Some times ago I've written a set of AppleScript scripts to manipulate popup menu items in Numbers 09. You may try the Script 3 (sort popup items.applescript) for instance in the following thread.
    Alphabetize pop-up menu
    https://discussions.apple.com/thread/5177915?tstart=0
    https://discussions.apple.com/message/22530570
    https://discussions.apple.com/message/22530926
    https://discussions.apple.com/message/22541516
    Hope this may help,
    H

Maybe you are looking for

  • Sort the values in Bex query variable screen

    Dear Experts, Is it possible to sort the values of a dropdown list for variables on BEX variable selection screen ?  For example, For calender month selection, the values are by default sorted by ascending order. Is it possible to sort by descending

  • Fixed number of pulse using agilent 33220A

    Hi all, I am trying to produce five pulses with Agilent 33220A function generator .. i am attaching my VI for your review... the problem is ,, i can able to send the command for digital pulse of required parameters ,, and the function generator start

  • DOC header

    Hi in DOC Header (F-02) there is doc text field is there after enter some thing & posted the transaction later it is possible to change , if it is possible then where it is ?

  • Subordinates Count query

    Any idea why this code runs in 1.5 seconds: SELECT ppf.employee_number, ppf.full_name, (SELECT COUNT(per.person_id)-1 FROM      hr.per_all_people_f per      ,hr.per_person_type_usages_f usg      ,hr.per_person_types ppt      ,hr.per_all_assignments_f

  • Remote device does not support servicedell wireless 350 bluetooth module + remote device does not support service

    Hello, I have a Palm Centro Phone and Dell Latitude D610 with a  Dell wireless 350 bluetooth module. I can send pics from phone to laptop, but when i try to send from my laptop to phone, I get the following message: remote device does not support ser