Naturally, I found it in the source as soon as I asked in public. // Tokenized incremental autocompletion is enabled automatically // when an autocompleter is instantiated with the 'tokens' option // in the options parameter, e.g.: // new Ajax.Autocompleter('id','upd', '/url/', { tokens: ',' }); // will incrementally autocomplete with a comma as the token. // Additionally, ',' in the above example can be replaced with // a token array, e.g. { tokens: [',', '\n'] } which // enables autocompletion on multiple tokens. This is most // useful when one of the tokens is \n (a newline), as it // allows smart autocompletion after linebreaks.
Now here's another poser. I am using a negative regex instead of a positive one to split words inside my server logic, I wonder how best to describe this: /[^-_a-z0-9]/ with an array of characters as tokens requires? Thanks again, Walter On Sep 18, 2008, at 7:25 AM, Walter Lee Davis wrote: > > I seem to recall from the Bad Old Wiki that there was a way to > autocomplete individual words in a multiple word input. I have read > the New Git Wiki, and don't see any reference to that there. Could > someone please remind me how to do this: > > Input: meat, fish, egg > --------------------------------- > Hint: egg > eggs > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---