Page 1 of 1

Drop Down search text box

Posted: Tue Jul 01, 2008 8:06 am
by biswa
Hello ,
Can somebody help me .
I have a simple search text box on the web page. I would like people to start typing someone
name and as soon as they type, it will show the people with that name stored in the database(It may use ajax), for example if they start typing 'a' it will show all the people with their name beginning with 'a' if they continue and type 'ab' it will filter to show everyone with their name beginning with 'ab' .
If they type 'abcd' it will filter again to show everyone with their name beginning with 'abcd' - exactly the same as gmail..



Thanks,

Re: Drop Down search text box

Posted: Tue Jul 01, 2008 8:15 am
by jaoudestudios
You will have to use ajax to do that.

Its called an autocomplete form.

There are hundreds of good tutorials and examples out there on the web. You cant expect anyone to rewrite one for you. I know for a fact searching on google will bring plenty of good results.

Re: Drop Down search text box

Posted: Wed Jul 02, 2008 4:06 am
by biswa
jaoudestudios wrote:You will have to use ajax to do that.

Its called an autocomplete form.

There are hundreds of good tutorials and examples out there on the web. You cant expect anyone to rewrite one for you. I know for a fact searching on google will bring plenty of good results.

thanks for help
if you have links, from which i can get code for "autocomplete form" which shows data from database using Ajax, please send me.
i appreciate your help.
thanka & regards

Re: Drop Down search text box

Posted: Wed Jul 02, 2008 4:20 am
by jaoudestudios
I just did a search on google and like I said before there are many good examples and tutorial out there, I picked one for you :)

http://nodstrum.com/2007/09/19/autocompleter/

Most of then use the prototype library. There are a few that use the Json library which is slightly faster.

Enjoy