[jQuery] Re: Two comments/questions about Jörn's aut ocomplete plugin.
hummm looks like you are very TOM.
[jQuery] Re: Two comments/questions about Jörn's aut ocomplete plugin.
i am not sure about the first question. i will allow the plugin author or someone who has his hands dirty with that plugin code to answer. as far as second question is concerned, if you set matchSubset to the appropriate value, then, it should solve your problem. the cache should also be enabled for this to work i suppose. -GTG On 8/1/07, chali [EMAIL PROTECTED] wrote: First I've to say that this plugin is a great piece of work and i'm using it in many of my projects. This time I need to implement it with a few modifications. My first question is: Is there a way to trigger a function when no results are found? I didn't find it in the documentation. Maybe with a little work on the code it's possible My second question/comment: As I handle a large ammount of options, I always use the remote results, and I noticed that for example id foo returns zero results and I type another letter fooo another request to the server searching for fooo is made. Is there a way to avoind this? I've tried with the cache options with no luck. I know that if there's no results on foo the logical thing to do is stop typing and change foo for other thing, but I'm going to allow the visitor to create a new item besides using what's on the database already. Thanks for your help and sorry for my english :)
[jQuery] Re: Two comments/questions about Jörn's aut ocomplete plugin.
Hi Carlos, You're almost there. You need to set cacheLength to a number 1 (say 10), and you need to set matchSubset to true. -Dylan On 8/1/07, chali [EMAIL PROTECTED] wrote: First I've to say that this plugin is a great piece of work and i'm using it in many of my projects. This time I need to implement it with a few modifications. My first question is: Is there a way to trigger a function when no results are found? I didn't find it in the documentation. Maybe with a little work on the code it's possible My second question/comment: As I handle a large ammount of options, I always use the remote results, and I noticed that for example id foo returns zero results and I type another letter fooo another request to the server searching for fooo is made. Is there a way to avoind this? I've tried with the cache options with no luck. I know that if there's no results on foo the logical thing to do is stop typing and change foo for other thing, but I'm going to allow the visitor to create a new item besides using what's on the database already. Thanks for your help and sorry for my english :)