PDA

View Full Version : Auto sugest box



naveenann
09-10-2009, 04:52 AM
I am working on an search application i need the search box should give auto suggest using ajax can any one tell me how to do it.. using ajax i tried many code but i need a code like google auto suggest....

JShor
09-10-2009, 05:17 AM
ok, well you'd need a data source to gather all suggestions. This could be where you're searching data from.

Here's what you';re looking for, you'd just need to change the data source to mysql if that's what you're using:
http://www.w3schools.com/php/php_ajax_livesearch.asp

naveenann
09-10-2009, 05:51 AM
ya i referred that ..but in that example the page is extending .please see the demo ..its not like google...if i use that my buttons are extending below the result of the sugessions...

JShor
09-10-2009, 07:15 AM
Do you mean you want it like a drop-down menu?

naveenann
09-10-2009, 07:25 AM
yes....