-
Notifications
You must be signed in to change notification settings - Fork 724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autocomplete not working #177
Comments
I'll have to look into this issue when I get back from my sabbatical, but make sure you are using the latest version of jQuery UI. |
Hi Rob, I have the latest JQuery-UI version (now 1.10.3). But this doesn't help fixing the mentioned problem. Enjoy your sabbatical. regards, 2013/7/26 Rob G notifications@github.com
Met vriendelijke groet, Guus Teley EMITA CISA RI |
Hi Rob, That makes a big difference! Thank you very much. Kind regards, 2013/10/3 Rob G notifications@github.com
Met vriendelijke groet, Guus Teley EMITA CISA RI |
jQuery Autocomplete with ajax loaded values works fine as long as you're using the physical keyboard. If I enter 2 characters through the virtual keyboard, I see these characters but no autocomplete list. If I enter the third character on the physical keyboard it shows the first list. So the physical entered data correctly appends to the virtual entered data. Tried to leave out the Ajax part and use some simple words as test, same behaviour. Checked IE, Firefox, Chrome: all the same. Also selecting a value from the autocomplete list through the mouse doesn't work.
Tested with:
<... load jQuery, virtual keyboard, CSS etc...>
$(document).ready(function() {
$(function() {
function log(message) {
$("
$("#log").scrollTop(0);
}
$('#sometext').keyboard({
usePreview: false,
position: {at: 'right bottom', of: '#log'}
}).autocomplete({
source: ['One', 'Two', 'Three', 'Musketiers'],
minLength: 1,
select: function(event, ui) {
if (ui.item) {
log("Selected: " + ui.item.label);
}
}
}).addAutocomplete();
});
});
It looks like the Mottie Virtual keyboard can't find the jQuery autocomplete. In the source (line 88 onwards) it says:
// set up after keyboard is visible
base.autocomplete_setup = function() {
// look for autocomplete
base.$autocomplete = base.$el.data('autocomplete');
base.hasAutocomplete = (typeof(base.$autocomplete) === 'undefined') ? false : (base.$autocomplete.options.disabled) ? false : true;
As it turns out, base.hasAutocomplete is false.
The text was updated successfully, but these errors were encountered: