I’m using the jquery autocomplete 1.0.2 extension by Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer. I am attempting to execute my own callback function when .show() and .hide() are called from within the autocomplete control. I haven’t found any way for it to actually recognize my callback function. If anyone is familiar with this control and can help I would be greatly appreciative.
I’m using the jquery autocomplete 1.0.2 extension by Dylan Verheul, Dan G. Switzer, Anjesh
Share
Sorry, I don’t have any easy answer to your question, I checked the plugin source code and didn’t find any mechanism to let you do want you want. I think you’ll have to update this plugin yourself to make it work as you wish.
The idea is to add your callbacks to the
optionsparameter and then make the plugin use these callbacks. First, you’ll have to modify the plugin code. Go to the function that creates the class in charge of showing/hiding the autocomplete control :If you scroll down, you can see that this function returns an object with
show()andhide()methods. You can add the following code :Finally, when you create your autocomplete, you should add your callbacks to your options:
Not tested at all, it’s just a quick and dirty solution. I hope this helps.