AutoComplete - Default List All
I'm trying to use the AutoComplete plug-in to do a preliminary search when a user first focuses on the textbox. I've read several posts, and this doesn't seem possible. The search method should work, but that only returns the search in ajax and unfortunately does not display the list. I believe this has to do with a focus counter in the source code.
I believe one user has modified the code to have this behavior work (using 'focus: true,' in their mod), but I'm hoping I'm missing something.
Here's my code:
$('#idMatter').autocomplete('ServiceHandler.ashx', {
max: 100, minChars: 1, mustMatch: true,
extraParams: { queryType: 'Matter' }
}).result(function(event, data, formatted) {
if (data)
$("#idMatter_RRT").val(data[1]);
}).focus(function() { $(this).search(); });