Autocomplete combo box with Javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Grey

    Autocomplete combo box with Javascript

    I want to know that how to design an autocomplete combo box in HTML with
    Javascript? There is no combo box control available for use in the HTML. Is
    it possible to design such kind of combo box in HTML. If so, what additional
    controls I need to add??

    Million Thanks..

    Eric


  • kaeli

    #2
    Re: Autocomplete combo box with Javascript

    In article <40053c86$1_2@r ain.i-cable.com>, ericyum@i-cable.com
    enlightened us with...[color=blue]
    > I want to know that how to design an autocomplete combo box in HTML with
    > Javascript? There is no combo box control available for use in the HTML. Is
    > it possible to design such kind of combo box in HTML.[/color]

    Not a "Real" one.
    You can make a fake one with enough style, javascript, a text input, and
    a select.
    I doubt it would be very cross-browser, though.

    The combobox is a VB concept. Nix it. Novice to intermediate surfers
    who've never used a VB app wouldn't know what to do with it, anyways.

    --
    --
    ~kaeli~
    Why do people who know the least know it the loudest?



    Comment

    • Michael Winter

      #3
      Re: Autocomplete combo box with Javascript

      On Wed, 14 Jan 2004 20:56:41 +0800, Grey <ericyum@i-cable.com> wrote:
      [color=blue]
      > I want to know that how to design an autocomplete combo box in HTML with
      > Javascript? There is no combo box control available for use in the HTML.
      > Is it possible to design such kind of combo box in HTML. If so, what
      > additional controls I need to add??[/color]

      You can't add new control types - you'll just have to live with the ones
      currently in use.

      One possible solution is to use two radio buttons, a text box, and a
      select menu. The menu can be populated with the predefined values. If a
      predefined value isn't adequate, the user can type a value into the text
      box. The radio buttons are used to determine which is the input the user
      wishes to submit. I posted a (very) quick example here:



      Mike

      --
      Michael Winter
      M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

      Comment

      Working...