View Full Version : Form validation
Can someone give me example on how to create drop down list
like travelsupermarket.com. When searching for flight destinations, upon entering the first three letters you get an auto list to select the most appropriate.
Basically I need something similar to make sure that the user enters
correct account number (retrieved from mysql) on the form.
I have used php/mysql.
I hope i have made sense.
02-26-2007, 03:33 PM
Editable Type-ahead Combo script in my sig might be the one you're looking for.
thanks for the reply but its not what im looking for. if you go to travelsupermarket.com
and type first few letters of destination in 'flying to' textbox you will know what i mean. my try typing just 'dub' and you will get the list below to choose from.
02-26-2007, 08:13 PM
Having looked at the page source of that site I have to say that to accomplish such a drop-down list is no small feat. The developers of the site use Ajax technology and a continuosly running function that get called on the focus event to bring the search results from the server. Not for the faint of heart. I mean it will take a lot of work.
03-02-2007, 04:32 PM
Ajax is the best solution in this situation.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.