Posted by Trogdor at 8:56am Jan 2 '10
You must sign in to send Trogdor a message
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?
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?