Autocomplete fields

Posted by Trogdor at 8:56am Jan 2 '10
You must sign in to send Trogdor a message
Has anyone here played around with Ajax much? I'm trying to learn how to get an Autocomplete list (like Google's Suggest) for 4cache's search page.

I've done some Googling but as I have about 5 XP in JavaScript everything that I find is like reading latin to me.

My setup for the search currently is it takes the form data ($q) then queries the database "WHERE comment IS LIKE %$q%".
For the Autocomplete I would have something like "WHERE comment IS LIKE $q% DISTINCT".

I can get the data out I just don't know how to make it show up in the Input field on the search page. Lots of results point at JQuery but I got no idea how to even think about getting it running.

Suggestions?

Below are the public posts you may view:

You currently have read-only access to this board. You must request an account to join the conversation.

Why Join 4thKingdom?

Note that there are no ads here. Just intelligent and friendly conversation. We keep the spam out, the trolls out, the advertisers out… 4K is just a low-key, old-fashioned site with members from around the world.
This community began in 1998, and we continue to accept new members today.

Hot Discussion Topics: