[jQuery] Re: Determine if autocomplete returns an empty list and number of records returned

2009-06-23 Thread JohnT
Hi. Sorry, but I am not getting this flicker effect. Actually, I don't think this method is such a good idea anymore because you'd be forking the original source code. Now, I am simply returning a JSON record that indicates that there are 0 records and this works better for me. John On Jun 22,

[jQuery] Re: Determine if autocomplete returns an empty list and number of records returned

2009-06-23 Thread Dushyant Patel
Could you please share code snippet with me. Thanks in advanced. On Jun 23, 9:29 am, JohnT jtra...@gmail.com wrote: Hi. Sorry, but I am not getting this flicker effect. Actually, I don't think this method is such a good idea anymore because you'd be forking the original source code. Now, I

[jQuery] Re: Determine if autocomplete returns an empty list and number of records returned

2009-06-23 Thread JohnT
First of all, your back end servlet/PHP/ASP etc needs to return JSON. I simply return this if the record is empty: [ {records:'0'} ] Then, in the formatItem function I check the JSON data: if (data.records data.records == 0) { return No match found; } John On Jun 23, 12:48 pm,

[jQuery] Re: Determine if autocomplete returns an empty list and number of records returned

2009-06-22 Thread Dushyant Patel
Could you please tell me where exactly added following script block. isEmpty: function(data) { if (data == 0) { $(#result).html(No match found); } } I am having same problem, but i don't want to show message, i just want to

[jQuery] Re: Determine if autocomplete returns an empty list and number of records returned

2009-06-22 Thread Dushyant Patel
i foundnd it, but its getting some flicker effect. how to avoid that? do you any idea? please share with me. Thanks On Jun 22, 7:36 pm, Dushyant Patel patel.dushy...@gmail.com wrote: Could you please tell me where exactly added following script block.         isEmpty: function(data) {