Page 1 of 1

Auto Suggest

Posted: Mon Apr 18, 2005 3:03 pm
by hawleyjr
I have a customer search feature on my site and would like to incorporate an auto suggest feature such as the one found at Goggle’s Auto Suggest.

http://www.google.com/webhp?complete=1&hl=en

I'm only dealing with a couple thousand records and would like to have the auto type feature. So if a person was searching for Joe Smith and started typing Joe... All names starting in "JOE" would appear. If anyone has any suggestions or have came across a tutorial detailing how to do this please let me know.

Thanks.

Posted: Tue Apr 19, 2005 2:18 am
by zenabi
This site should get you started:

http://www.webpasties.com/xmlHttpRequest/

It's not exactly what you need, but the basics are there.

Posted: Tue Apr 19, 2005 4:34 am
by malcolmboston
what happens when javascript is turned off? It would kill the whole functionality of it, you need to bear this in mind and provide an alternative solution as well

Posted: Tue Apr 19, 2005 7:28 am
by hawleyjr
malcolmboston wrote:what happens when javascript is turned off? It would kill the whole functionality of it, you need to bear this in mind and provide an alternative solution as well
Very valid point. In this specific project it is for an intranet site. So anyone who has js turned off and complains about it not working gets me standing over them at their desk :)

Thanks All

Posted: Tue Apr 19, 2005 7:29 am
by feyd
can always put a <noscript> reminder to turn JS on for at least that server/page/whatever.. :)