autosuggest key controls

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

    autosuggest key controls

    Hi,
    can anyone help me in in creating autosuggest using ajax

    i have fetched the values from DB and showing in the div as per the
    text entered in the text box.
    but i am not able to do mouse events like downarrow,up arrow and enter
    key
    how can i handle this .

    Thanks in Advance
    Raj
  • Laser Lips

    #2
    Re: autosuggest key controls

    On Oct 7, 9:08 am, raj <2rajes...@gmai l.comwrote:
    Hi,
    can anyone help me in in creating autosuggest using ajax
    >
    i have fetched the values from DB and showing in the div as per the
    text entered in the text box.
    but i am not able to do mouse events like downarrow,up arrow and enter
    key
    how can i handle this .
    >
    Thanks in Advance
    Raj
    Try this...



    It's the basis of an input control I'm going to build

    Comment

    • Laser Lips

      #3
      Re: autosuggest key controls

      On Oct 7, 11:59 am, Laser Lips <loudsphi...@gm ail.comwrote:
      On Oct 7, 9:08 am, raj <2rajes...@gmai l.comwrote:
      >
      Hi,
      can anyone help me in in creating autosuggest using ajax
      >
      i have fetched the values from DB and showing in the div as per the
      text entered in the text box.
      but i am not able to do mouse events like downarrow,up arrow and enter
      key
      how can i handle this .
      >
      Thanks in Advance
      Raj
      >
      Try this...
      >

      >
      It's the basis of an input control I'm going to build
      Just So you know, this doesnt work yet in FF.....I just built it two
      days ago..


      Comment

      • Gregor Kofler

        #4
        Re: autosuggest key controls

        raj meinte:
        but i am not able to do mouse events like downarrow,up arrow and enter
        key
        Er... what? "Mouse events like downarrow"? Mouse events can invoke their
        respective listeners, and so can key events. I suppose you are looking
        for the "keydown" (in particular), the "keyup" and perhaps the
        "keypress" events. Attach listeners which check whether the event was
        triggered by the appropriate keys and call your cursor-up/cursor-down
        function.

        Gregor



        --
        http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
        http://web.gregorkofler.com ::: meine JS-Spielwiese
        http://www.image2d.com ::: Bildagentur für den alpinen Raum

        Comment

        Working...