AutoSuggest!

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

AutoSuggest!

Post 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/
User avatar
hannnndy
Forum Contributor
Posts: 131
Joined: Sat Jan 12, 2008 2:09 am
Location: Iran>Tehran
Contact:

Re: AutoSuggest!

Post by hannnndy »

you should read words from database using ajax i think

is there any way?
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: AutoSuggest!

Post by shaqa »

as i know by reading articles on internet just reading words from database
any other way withot database?
User avatar
hannnndy
Forum Contributor
Posts: 131
Joined: Sat Jan 12, 2008 2:09 am
Location: Iran>Tehran
Contact:

Re: AutoSuggest!

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: AutoSuggest!

Post 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.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: AutoSuggest!

Post by Jonah Bron »

Or XML
User avatar
hannnndy
Forum Contributor
Posts: 131
Joined: Sat Jan 12, 2008 2:09 am
Location: Iran>Tehran
Contact:

Re: AutoSuggest!

Post by hannnndy »

or even a txt file it is posible to store all the dictionaries words in an array or a data structure
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: AutoSuggest!

Post by shaqa »

do you know where to get a huge database with words in category of music?
Post Reply