#1
  1. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2004
    Posts
    958
    Rep Power
    20

    General Ajax question


    Thanks for taking the time to read my question.

    I just found these pages (and they are very helpful), but the examples have the user type in the <input /> and show the result in a <span></span>.

    http://www.w3schools.com/php/php_ajax_database.asp

    http://www.w3schools.com/php/php_ajax_suggest.asp

    Is it possible to show the result in the same <input /> that you're typing in?

    I'm coming from a MS Access and know that in combo boxes, as soon as you start typing it starts to fill in the best match.

    thanks,

    Brad
  2. #2
  3. hack of all trades
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2009
    Location
    Madrid
    Posts
    898
    Rep Power
    522
    http://momche.net/res/autocomplete/

    Comments on this post

    • Arty Ziff agrees
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2004
    Posts
    958
    Rep Power
    20
    Awesome! Thanks.

    So is this just using JavaScript or Ajax?

    Brad
  6. #4
  7. No Profile Picture
    I AM A GOLDEN GOD
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Apr 2003
    Location
    Camarillo, California
    Posts
    5,929
    Rep Power
    1171
    I'm wagering that what's on the other end of that link is not what you want. If you want a real 'ajax autosuggest' widget, that's nowhere close.

    Comments on this post

    • Arty Ziff agrees
    "Seriously, we're not a search engine, we're actual people." ~ ManiacDan

    BookMooch.com : Give books away. Get books you want.
  8. #5
  9. hack of all trades
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2009
    Location
    Madrid
    Posts
    898
    Rep Power
    522
    Mbrad - its just using javascript.

    if you look for autocomplete instead of autosuggest you will get closer to what you're after (i think) I'm making the assumption that if you type "sound" you dont want your imput to change to "miami sound machine" but are probably looking to complete "sound garden" or something that effect?
  10. #6
  11. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2004
    Posts
    958
    Rep Power
    20
    Yes, that's correct, I'm going for "Sound Garden" not "Miami Sound Machine".

    By the way, nice references!! Miami Sound Machine... I haven't heard that band in a really long time. Awesome.

    Thanks for the help.

    Brad
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    May 2006
    Location
    I'm sneaking up behind you.
    Posts
    1,490
    Rep Power
    836
    If you don't mind using jquery, this plugin will come in handy for ajax auto suggest too.
    Why do we always seek someone, something or some thought? Are we afraid of ourselves?

IMN logo majestic logo threadwatch logo seochat tools logo