[Seaside] AutoCompleter

Lukas Renggli renggli at gmail.com
Fri Apr 18 07:13:37 UTC 2008

1. You need to store the autocompleter object in a JavaScript variable.

2. Then in the onSelected: event you can access the method
selectedIndex and serialize it to the client together with the
contents of the form element.

That looks somehow like this (as usual I haven't tested):

   html div
      class: 'autocomplete';
      script: (html autocompleter
         element: 'text';
         assignTo: 'auto';
         onSelected: (html request
            callback: [ :value | index := value asInteger ]
               value: (html autocompleter
                   alias: 'auto';
            triggerFormElement: 'text')


Lukas Renggli

More information about the seaside mailing list