Skip to main content

Posts

Showing posts with the label autocomplete

How to improve performance of Jquery autocomplete

I was planning to use jquery autocomplete for a site and have implemented a test version. Im now using an ajax call to retrieve a new list of strings for every character input. The problem is that it gets rather slow, 1.5s before the new list is populated. What is the best way to make autocomplete fast? Im using cakephp and just doing a find and with a limit of 10 items. Source: Tips4all

Netbeans only has partial jQuery autocompletion

I just downloaded netbeans 7.1 (PHP) to develop javascript. Autocompletion is working across the javascript files in the project, and jQuery is supported - somewhat. If I type "$.is" I get the following options: Note the missing "isArray", "isNumeric", etc, etc... The javascript settings in Netbeans: Question: "What am I missing?"

Netbeans only has partial jQuery autocompletion

I just downloaded netbeans 7.1 (PHP) to develop javascript. Autocompletion is working across the javascript files in the project, and jQuery is supported - somewhat. If I type "$.is" I get the following options: Note the missing "isArray", "isNumeric", etc, etc... The javascript settings in Netbeans: Question: "What am I missing?"

Do myFunction right after JSONP request

I have a script which allows to display Google suggestions: JsFiddle I want to do a function with the first li item rendered by the ui autocomplete, so I did this: $("input#term").keyup(function() { DoMyFunction($('.ui-autocomplete li:first-child a').text(), true); }); The problem however is that there is a period of time between the keyup---> request--->xml cache and html rendering by the ui autocomplete. Which means the my function (DoMyFunction) is being triggered when there is no html list, hence it doesnt work. So my question is: How do I do my function right after the reqeust is cached and processed. Setting a timer wont work because there are to many variables to account for (ea user bandwidth).

Do myFunction right after JSONP request

I have a script which allows to display Google suggestions: JsFiddle I want to do a function with the first li item rendered by the ui autocomplete, so I did this: $("input#term").keyup(function() { DoMyFunction($('.ui-autocomplete li:first-child a').text(), true); }); The problem however is that there is a period of time between the keyup---> request--->xml cache and html rendering by the ui autocomplete. Which means the my function (DoMyFunction) is being triggered when there is no html list, hence it doesnt work. So my question is: How do I do my function right after the reqeust is cached and processed. Setting a timer wont work because there are to many variables to account for (ea user bandwidth).

jQ autocomplete issue in androdi app

I struggle with the autopcomplete Plugin for jQuery. <input type="text" id="name" /> <input type="password" id=""pass" /> //... $('#name').autocomplete({source: userName}); It works all fine but when I've selected a user name I get a text focus an both the name and the password input field. As soon as I type in a char it appears in both but just in the next moment the courser jumps in the name field and continues writing in there. I tried to disable and/or unfocus the password field using jQuery's focus/focusout events as well as autcomplete's autocompleteclose events but none of these worked. My target is a phinegap honegap 1.2.0. app, jQuery 1.18.16 and jqm 1.0 for 2.0+ android. Edit I forget the most important observation. This behaviour only occurs when I select a suggestion which is displayed over the password field. So my assumption is the click/tap event will be fired for both events. autoc