RE: [jQuery] Autocomplete

2010-01-04 Thread amercer
Thanks

  _  

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Md. Ali Ahsan Rana
Sent: 04 January 2010 12:06
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Autocomplete


If you want to match ignoring the comma(may be this is what you want), then
you have to pass some extra parameters and some more suggestion will show up
besides the expected..

$("#suggest1").focus().autocomplete(cities,
{multiple: true,
 multipleSeparator:" ",
 matchContains:true}
);


-- 
http://ranacseruet.blogspot.com/



RE: [jQuery] Autocomplete

2010-01-04 Thread amercer
Hi, Thanks for your reply.
 
Can you please confirm that if I have a file called mydata.js that includes
the following:
 
var mydata = [
"TownOne, County", "Town Two, County", "Town Three, County", "TownFour,
County", 
];
 
that using item.replace(...) as suggested will for example ensure:
 
1.  Town Two, County will be shown in the prompt list if the user types Town
Two C or Town Two Co etc... 
OR TownFour, County will be shown in the prompt list if the user types
TownFour C or TownFour Co etc... 
 
Sorry to ask this extra question it must be the New Year my brain is still
in Christmas mode...
 
Thanks again
 
Andrew

  _  

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Md. Ali Ahsan Rana
Sent: 04 January 2010 08:33
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Autocomplete


loop through all the items in array and use

item.replace(",","',")

this should be ok now...



-- 
http://ranacseruet.blogspot.com/



RE: [jQuery] Autocomplete

2010-01-04 Thread amercer
Hi,
 
Thanks.
 
I still cannot pinpoint where I can handle the following problem, any
guidance greatly appreciated.
 
My data can have multiple words for one entry that must be
separated by a comma.
For example: array [ "Item 1", "Item 2", "Item, value3"... ];

When my clients type in the autocomplete field I need the comma to be
ignored, so for example:

If they type 'Item va' I need 'Item, value3' to be returned in the
autocomplete prompt list.  At the moment clients have to type 'Item,
va' to see 'Item, value3' in the autocomplete prompt list.  How can I
handle this.

Thanks again
 
Andrew

  _  

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of waseem sabjee
Sent: 02 January 2010 19:39
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Autocomplete


i would suggest you check out jQuery UI


On Sat, Jan 2, 2010 at 9:35 PM, AndrewM  wrote:


Hi,

I am new to jQuery and have 2 questions:

I am using the bassistance.de jQuery plug-in.

1.  For speed I have created my Array of data to be searched client
side in a .js file as I have 25k + items.  In Firefox and IE8 the auto
prompt is very fast - however in for some clients it is not - for
example some using IE7. How can I speed up the load process?

2.  My data can have multiple words for one entry that must be
separated by a comma.
For example: array [ "Item 1", "Item 2", "Item, value3"... ];

When my clients type in the autocomplete field I need the comma to be
ignored, so for example:

If they type 'Item va' I need 'Item, value3' to be returned in the
autocomplete prompt list.  At the moment clients have to type 'Item,
va' to see 'Item, value3' in the autocomplete prompt list.  How can I
handle this.

Thanks for your help.

Andrew