See below.

On Mon, May 17, 2010 at 5:39 PM, panyasan <[email protected]> wrote:

>
> Hi Krycek,
>
> glad that you found this useful. Getting autocomple behavior right was
> quite
> a challenge, with so much asynchronicity and latency involved due to the
> slowness of http requests!
>

Since you mentioned that, I've just noticed that the number of suggestions
increases on every key hit. The problem seems to be related to that like:

suggestions.unshift( item );

commenting that line out seems to solve the problem. But I don't know
exactly what it's doing there. But if that line is not necessary the next
one isn't too:

model.setSuggestions( new qx.data.Array( suggestions ) );



> Do I understand correctly that the suggestion object is to populate a
> drop-down list - for the combobox? In a previous version, I had implemented
> support for the combobox drop-down list, but that proved not work very well
> with muliti-value autocompletion. But certainly, this would be a standard
> use case. If you send me a diff I'll me more than happy to apply it if
> nothing breaks for me!
>
>
Nothing to do with combobox, at least in the case that I'm dealing right
now. I have two fields "client_id" and "client", for the "client" field I'm
using your controller, but I need to set the field "client_id" when the user
hits enter. The client_id field exists because the user can enter the client
id directly and it will bring the user name into the other field.

Anyway, attached a file with my modifications.


> Thanks,
> C.
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Autocomplete-controller-beta-ready-tp4991551p5066959.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>

Attachment: AutoComplete.js
Description: JavaScript source

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to