View Single Post
  #4 (permalink)  
Old Jul 26th, 2007, 21:37
Paramiliar Paramiliar is offline
Junior Member
Join Date: Jul 2007
Location: West Midlands
Age: 26
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Re: dropdown menu / list box

Hey there, right well in all honesty I cant see a way of doing this myself. I mean instead of using a database you could hard code a javascript array to store all the information you needed but the problem is with the inputing into a text box and auto selecting the drop down. I'm thinking some sort of formula would have to be written to check each array against what was entered, so like when the person types in the letter a it would cycle through the array, retrieve all the parts that begin with a and then re-output the drop down to show only those.

So in short what I think you need to do in order to achieve this is to have a standard text input field, user starts typing. The files are stored in an array. Depending on the text entered will determine how many parts of the array are returned. You would then remove all entries from the drop down list and re-ouput the new ones..


I have only ever done dynamic drop downs once before and never needed a use for it again. If you get majorly stuck drop me a line and i'll see if I can dig up some information for you
Reply With Quote