I am making an application to help people navigate through a large office building. I made a long switch containing all the room numbers. When the room number is typed in, it goes to an animation of that room highlighted on an image of the building's floorplan.
What I was hoping to do is make it so that as the user is typing the room number, a box below the text input box begins displaying suggestions, and the more the user types, the more it narrows the suggestions down. I was hoping to do this because the room numbers for the building are a very long mix of letters and numbers.
I've tried doing some research, but have not been able to find anything. Any help would be appreciated. Thanks.
The textfield should be supported by a CHANGE event, such that as characters are entered or removed an event is triggered that can be used to call a function. The function would be where you deal with the suggestions.
You'd probably not want to use a switch unless you have already reasoined a way to do so. It depends how you are analyzing the entry.
I don't know what you mean as far as using a component. I wouldn't use one for anything you have talked about so far... just an input textfield, a dynamic tectfield (for the suggestions), and code are all I see you needing so far.
I'm not sure how a drop down list works into this. What purpose would it serve? If the suggestions are not something you would select from, then I would just use a dynamic textfield set to autoSize itself and list the suggestions in that textfield.