it return result but its null. and in that case i want to hide layer by calling select.hide(); but where should i call it.
where to check that data==null and call select.hide(); Please help me on this. Thanks On Jun 22, 11:10 am, Jörn Zaefferer <joern.zaeffe...@googlemail.com> wrote: > What happens when yourservicedoesn't return a result? As long as it > returns an empty result (not an error), it should work fine. > > Jörn > > On Mon, Jun 22, 2009 at 5:01 PM, Dushyant Patel<patel.dushy...@gmail.com> > wrote: > > > Hello, > > > I am using jQueryAutocompletePlug-ins(http://bassistance.de/jquery- > > plugins/jquery-plugin-autocomplete/). > > > Let me explain my problem: > > > If i am looking for "shirt" and star typing "shi" and it showing me 10 > > results for shirt, but now after "shi" if i type like "shixyzyz" it > > should clear list and hideautocompletelayer. > > > In my case it is not doing that. Layer stay there with old results. > > > Pleaes note that i am makingservicecall using JSONP and following is > > my code. > > > $j(".autocomplete").autocomplete('URL/Service.svc/REST/SEARCH/', { > > minChars: 3, > > matchContains: true, > > selectFirst: false, > > cacheLength: 0, > > width:307, > > dataType: "jsonp", > > > any suggestion or hint on this. > > > Please help me. > > > Thanks in advance.