AFAIK it's because some autocompletion fields might take multiple values and be delimited by characters like a comma or space. The get token method allows you to get the last keyword/tag the user is entering and instead of the whole value.
On 18/05/06, Daniel Elmore <[EMAIL PROTECTED]> wrote:
Hi, I needing to modify the control.js file and am confused about what the purpose of the getToken function is. I read the docs section below and still don't understand why it doesn't just access the form.value directly. Docs say: This method should get the text for which to provide autocompletion by invoking this.getToken(), NOT by directly accessing this.element.value. This is to allow incremental tokenized autocompletion. Does anyone understand the getToken function?? Thanks! _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
-- Andrew
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs