[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-23 Thread tarave
As I mentioned in my earlier post I have the same problem with autocomplete. The fix/workaround that I added to my page was to add a validation that is executed just prior to the page submit. The validation takes the typed in value and queries my data source to verify the typed in value exists.

[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-23 Thread Dushyant Patel
It returns an empty, but still layer is there, it should be hided. On Jun 22, 11:10 am, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: What happens when your service doesn't return a result? As long as it returns an empty result (not an error), it should work fine. Jörn On Mon, Jun

[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-23 Thread Dushyant Patel
Hey i did not get you. Could please tell me more in details, if possible with some code/examples. Thanks in advance. On Jun 23, 11:28 am, tarave arav...@yahoo.com wrote: As I mentioned in my earlier post I have the same problem with autocomplete. The fix/workaround that I added to my page

[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-22 Thread Jörn Zaefferer
What happens when your service doesn'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 Patelpatel.dushy...@gmail.com wrote: Hello, I am using jQuery Autocomplete Plug-ins(http://bassistance.de/jquery-

[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-22 Thread Dushyant Patel
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

[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-22 Thread tarave
here is a link... http://groups.google.com/group/jquery-en/browse_thread/thread/9011e7faa57dca06 On Jun 22, 3:18 pm, tarave arav...@yahoo.com wrote: I'm having the same problem today.  Looks like another person did too and thier fix was to put a hack into the autocomplete plugin code.

[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-22 Thread tarave
I'm having the same problem today. Looks like another person did to and thier fix was to put a hack into the autocomplete plugin code.

[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-22 Thread Dushyant Patel
I tried following one: In the request function after the line var data = cache.load(term); I added the following: if (!data) { options.isEmpty(0); } else { options.isEmpty(data.length); } And in my autocomplete code, I