Page 1 of 1

AutoSuggest!

Posted: Sat Feb 02, 2008 9:00 pm
by shaqa
how do i implement autosuggest of autocomplete at my script below,
Im using audio search script.
Is it possible to use autosuggest without db of words?

Code: Select all

<form method="GET" action="index.php">
    <input type="text" name="search" size="25"/></td><td>
        <INPUT type=submit value="Search!">
    </form>
i have read some article but cannot understand:
http://www.brandspankingnew.net/special ... plete.html
http://fromvega.com/wordpress/2007/05/0 ... -json-php/

Re: AutoSuggest!

Posted: Sat Feb 02, 2008 10:48 pm
by hannnndy
you should read words from database using ajax i think

is there any way?

Re: AutoSuggest!

Posted: Sat Feb 02, 2008 10:53 pm
by shaqa
as i know by reading articles on internet just reading words from database
any other way withot database?

Re: AutoSuggest!

Posted: Sat Feb 02, 2008 11:00 pm
by hannnndy
as i looked at it it was using ajax and database

but i think it is possible using a data structure like array storing alla the words or file or xml to store words and opening that with javascript to be purely client side i think it is possible but not useful

Re: AutoSuggest!

Posted: Sat Feb 02, 2008 11:09 pm
by John Cartwright
you need a database of some sort, that is for sure. Whether it be a php array, mysql, flatfiles, etc. is entirely up to you.

Re: AutoSuggest!

Posted: Sun Feb 03, 2008 8:09 pm
by Jonah Bron
Or XML

Re: AutoSuggest!

Posted: Wed Feb 06, 2008 11:39 am
by hannnndy
or even a txt file it is posible to store all the dictionaries words in an array or a data structure

Re: AutoSuggest!

Posted: Thu Feb 07, 2008 3:45 am
by shaqa
do you know where to get a huge database with words in category of music?