views:

22

answers:

0

I've got an Autocomplete input that is a filter to a datatable. When the person searches in the box, autocomplete does it's job and attached to the source callback, it does an ajax lookup and triggers an update to the table. Additionally it updates a div mentioning how many suggested results were returned.

I've also got a "suggest" button that triggers .("search") and .("close") to show or hide the menu.

I'd like to suppress the auto opening of the menu during normal search. I've tried to override ._response and removing ._suggest() but this is also used when .("search") is called so then the menu never pops up.

I'm interested in a better place to suppress the menu, or a better way to accomplish this.

Thanks!

PS I cross posted this on the jquery support forums, but stack overflow seems to get a lot more traffic.