SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow Dynamic form updating based off text input

    Basically what I need is to use a search type box to type in a name. As I am typing it I need to fill in a form below it with the most appropriate results information as I am typing my query.

    First is this possible. I have been searching the web for two hours and have not had any luck finding an example of this so far. Also if possible do you know of an example using php that I can gaze upon to have a running start. Also did I mention I know almost nothing about javascript.

    Thank you for all who rely.

    Aaron

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    You will need to use ajax to communicate with the server as someone types, and return results that will be updated on the page.

    For an example, see http://www.smaps.co.nz/

    As far as the php goes, there's lots of examples out there. I suspect that knowing about ajax will help you on your search now. For example, http://www.w3schools.com/php/php_ajax_database.asp

  3. #3
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to take that one step further and as you are typing have it update other form elements with data based off of the best match at the time you type a letter?

    Smoothice

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Yes of course


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •