PDA

View Full Version : autocomplete



becky99
25 Sep 2013, 5:43 PM
Hi all,

I need to create a autocomplete field text.
1) I have a servlet to return the autocomplete result
2)A text field with autocomplete
3)On tab change, the a new text field with autocomplete is created below
3)on backspace, the text field is deleted.

Anyone seen any ux autocomplete field text? thanks

becks

Kurt001
26 Sep 2013, 2:46 AM
No - haven't seen one, but does not sound too hard to do.
- Create an array with words you allow
- do an event on keyup
....- check if word typed is in word array
....- check if delete was presssed

Something like this. You could wrap that in a component.

becky99
21 Oct 2013, 2:32 AM
Hi all,

Got something similar as below: Trying to change the code a bit. How to I change the left right position of the dataview list in this piece of code? Want the dataview.list to be moved right instead of directly align below of the textbox
Playing with the attribute left and right of dataview list does not seem to achieve that.

https://github.com/becks2000/sencha-touch-2-autocomplete-textfield (https://github.com/becks2000/sencha-touch-2-autocomplete-textfield)