Auto compleate input field.

  • rameshkpalleri
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 18, 2005
  • Posts: 32
  • Loc: india
  • Status: Offline

Post September 15th, 2006, 4:05 am

Hello wonderful people..
Im creating a form. in that i need to apply 'auto compleate' function in text field..
ie. when i entered RAMESH once, the second time if i type R in the field the whole word should disply der.. like that..

any body tried this..?

Stay beautiful..
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 15th, 2006, 4:05 am

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post September 15th, 2006, 4:35 am

didnt try till now, but can be done fairly easy, using a combination between a input text field and a combo box.
place the combo box on the stage, create another layer above it and place your input text field over the combo box, so that only the drop down button can be seen.
This is the display part.

Next part is to store all the data entered in the textbox inside an array.
Then all you have to do is fill the combobox with data from the array, corresponding to the characters entered in the textbox. This will be done both on KeyPress event and on combo box drop down event.
So, if in text is entered R ... fill the combo box with all the values from the array that starts with R.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
  • rameshkpalleri
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 18, 2005
  • Posts: 32
  • Loc: india
  • Status: Offline

Post September 17th, 2006, 10:56 pm

Thanks bro,...
but i need the at inside the textfield itself.
coz im using Lite2.0. so using a combobox will be a problem(size)... i think..
any idea..?
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post September 17th, 2006, 11:55 pm

uhmm, then you have to create your own combo box. I think i made a scrolling list (and the list is exactly what u need, cos the dropdown button can be created by you) in flash ... i`ll look over it later to see if you can use it.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
  • rameshkpalleri
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 18, 2005
  • Posts: 32
  • Loc: india
  • Status: Offline

Post September 18th, 2006, 1:43 am

Thankyou so much..

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 36 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.