Thank you Eric for your help. You guessed exactly what I wanted to do. I'll look on my side for what I can find.
Regards On 11 oct, 21:08, Eric <[EMAIL PROTECTED]> wrote: > I think I understand what you want to do: > > When someone types into an input field, the text they type is > constrained by the possible values. So, if the user was presented > with a blank field, and your list of possible values didn't contains > *any* words that begin with 'q', then it would be impossible for the > user to type a 'q' as the first letter in the field. > > I think this exact behavior would be a bit difficult to implement, > because you'd have to buffer the incoming keystrokes while you're > checking the dictionary. > > A slightly simpler method would do almost the default UIautocomplete > mustMatch feature... but instead of erasing the entire field, we only > erase the part that doesn't match. > > I'll check out the autocompleter code, and post what I find. > > -E > > This may be possible if the data is local to the > > On Oct 10, 9:53 am, Romain Sauvaire <[EMAIL PROTECTED]> wrote: > > > Hello everybody, > > > I'm using theautocompleteUI feature and I want my field to match one > > of the returned value. When I set mustMatch to true and type a bad > > letter it completely removes the typed text. Okay it's the planned > > behavior. > > I want to override this behavior and avoid typing letters that does > > not match the "values". Am I clear (French speaking guy not really > > fluent in English). > > For example if you go to the demo (of the plugin I agree) and that you > > try to type in the month field "janu" it will shows "january" but try > > to type an other letter than "a" and you'll get an empty input :( > > Here :http://jquery.bassistance.de/autocomplete/demo/ > > > Thank a lot for those of you that can help me...and for the other > > too ;) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
