[Product-Developers] Archetypes livesearch widget

classic Classic list List threaded Threaded
6 messages Options
Martin Aspeli-2 Martin Aspeli-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[Product-Developers] Archetypes livesearch widget

Hi,

I need a "live search" widget for Archetypes that can fill a LinesField
with keys from a very large vocaulary, based on a search (for users, in
my case; possibly content later).

I know a few of these were kicking about, but I'm not sure what's most
up to date. Anyone have good experiences?

Cheers,
Martin

--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book


_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Wichert Akkerman Wichert Akkerman
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [Product-Developers] Archetypes livesearch widget

Previously Martin Aspeli wrote:
> Hi,
>
> I need a "live search" widget for Archetypes that can fill a LinesField
> with keys from a very large vocaulary, based on a search (for users, in
> my case; possibly content later).
>
> I know a few of these were kicking about, but I'm not sure what's most
> up to date. Anyone have good experiences?

http://dev.plone.org/archetypes/browser/MoreFieldsAndWidgets/AutocompleteWidget
has been around for a few years and works fine.

Wichert.

--
Wichert Akkerman <[hidden email]>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Hedley Roos Hedley Roos
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [Product-Developers] Archetypes livesearch widget


>
> http://dev.plone.org/archetypes/browser/MoreFieldsAndWidgets/AutocompleteWidget
> has been around for a few years and works fine.
>
> Wichert.
>

It does not seem to use ajax?

I've been wanting to make my own selection widget for a while, but I
should probably help out with UberSelectionWidget or something similar.

I want to implement a "cache" in some hidden DOM element (probably an
ordered list since the browser will sort alphabetically). Then your
<select> queries the cache with normal javascript. If the cache misses
then the auto-complete returns false, but the cache goes off and makes
an ajax call to the server and retrieves a few more auto-complete
candidates. The next time the cache might hit, else the process continues.

Hedley


_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Wichert Akkerman Wichert Akkerman
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [Product-Developers] Archetypes livesearch widget

Previously Hedley Roos wrote:
>
> >
> >http://dev.plone.org/archetypes/browser/MoreFieldsAndWidgets/AutocompleteWidget
> >has been around for a few years and works fine.
> >
> >Wichert.
> >
>
> It does not seem to use ajax?

No, but in a lot of situations ajax is not needed. Unless you have a
very large vocabulary this widget should work just fine.

If you need an ajax version it should be quite trivial to build one
using the jquery autocomplete plugin.

Wichert.

--
Wichert Akkerman <[hidden email]>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Hedley Roos Hedley Roos
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [Product-Developers] Archetypes livesearch widget

Wichert Akkerman wrote:

> Previously Hedley Roos wrote:
>>> http://dev.plone.org/archetypes/browser/MoreFieldsAndWidgets/AutocompleteWidget
>>> has been around for a few years and works fine.
>>>
>>> Wichert.
>>>
>> It does not seem to use ajax?
>
> No, but in a lot of situations ajax is not needed. Unless you have a
> very large vocabulary this widget should work just fine.
>
> If you need an ajax version it should be quite trivial to build one
> using the jquery autocomplete plugin.
>
> Wichert.
>

Cool. It seems to do exactly what I want. When I encounter the need to
use this type of widget again I'll try your suggestion.

_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Martin Aspeli-2 Martin Aspeli-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [Product-Developers] Archetypes livesearch widget

In reply to this post by Wichert Akkerman

wichert wrote
Previously Hedley Roos wrote:
>
> >
> >http://dev.plone.org/archetypes/browser/MoreFieldsAndWidgets/AutocompleteWidget
> >has been around for a few years and works fine.
> >
> >Wichert.
> >
>
> It does not seem to use ajax?

No, but in a lot of situations ajax is not needed. Unless you have a
very large vocabulary this widget should work just fine.

If you need an ajax version it should be quite trivial to build one
using the jquery autocomplete plugin.
I need to select multiple users from a potentially large/slow LDAP repository. If the widget loads the vocabulary on access, then that doesn't work. In fact, the vocabulary won't be enumerated. Basically I want the formlib UberSelectionWidget, but for AT ;-)

Martin
Loading...