[jQuery] Re: How do i use JQuery Autocomplete for multiple words

2009-05-04 Thread Gath

Sorry guys! i've known how to do this! just set the multiple option to
True and multipleSeparator to a character of your choice.

example:

$("#tagnames").autocomplete("/tags/filter", {
max: 6,
highlightItem: true,
multiple: true,
multipleSeparator: " ",
matchContains: true,
scroll: true,
scrollHeight: 300
});

Am using this version of JQuery Autocomplete:
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

Thanks,

Gath

On May 4, 3:47 pm, Gath  wrote:
> I have an autocomplete field and am just wondering how can i use it
> for multiple words? When i type the first word it works perfect, but
> when i space and type in the second word, its sends the two words back
> to the server and of course the results are wrong!
>
> eg. when i type the two words,
>
> 'Java javascript'
>
> the first word 'Java', autocomplete works well, pull the list.
>
> but when i space and type javascript, autocomplete sends 'Java
> +javascript' to my ajax function.
>
> Any ideas how to fix this?
>
> Gath


[jQuery] Re: How do i use JQuery Autocomplete for multiple words

2009-05-04 Thread Jörn Zaefferer

Take a look at the "multiple" examples. Basically you just set multiple:true.

Jörn

On Mon, May 4, 2009 at 2:47 PM, Gath  wrote:
>
> I have an autocomplete field and am just wondering how can i use it
> for multiple words? When i type the first word it works perfect, but
> when i space and type in the second word, its sends the two words back
> to the server and of course the results are wrong!
>
> eg. when i type the two words,
>
> 'Java javascript'
>
> the first word 'Java', autocomplete works well, pull the list.
>
> but when i space and type javascript, autocomplete sends 'Java
> +javascript' to my ajax function.
>
> Any ideas how to fix this?
>
> Gath
>