[Kss-devel] KSS enabled SiteUser Autocomplete widget
Godefroid Chapelle
gotcha at bubblenet.be
Sat Mar 8 11:29:39 CET 2008
Victor Fernandez de Alba wrote:
> Hi,
>
>
>
> I’ve been trying to develop an AT widget that would search the PAS for
> all the available users in the site. It would be great if that widget
> will have the autocomplete feature. The idea came from a widget I liked
> very much that the dojo library have and I wanted to create an AT widget
> that emule its behavior.
>
>
>
> It would be of a great use for those who have a large user databases
> such as LDAP based ones, as is my case.
>
>
>
> I borrowed the code from the “sharing” tab which already use KSS to
> search the PAS, and I managed to integrate it in a widget. Then, created
> a new KSS file and register it to the portal_kss with a set of modified
> definitions from the one uses the “sharing” tab. It works perfectly.
Great !
> Now I’m stuck on adding the autocomplete behavior. I’ve tried the KSS events
> keypress, keyup, keydown with no effect… However, I’ve tried with
> another type of event, and worked, like timeout or change… Any ideas?
>
> Víctor Fernández de Alba Encinas
I am afraid the autocomplete part needs to happen in JS code.
Balazs has worked on code that autocomples/live searches content :
http://svn.plone.org/svn/collective/Products.CMFBibliographyAT/branches/ree-martior-kss/
I have no idea how easy it would be to make it work with PAS as well.
--
Godefroid Chapelle (aka __gotcha) http://bubblenet.be
More information about the Kss-devel
mailing list