search for: firstmatch

Displaying 1 result from an estimated 1 matches for "firstmatch".

Did you mean: fastmatch
2006 Mar 17
1
Autocompleter.Local problem/desparate plea for help...
...rticle_keywords'',''auto_complete'', opts , { tokens: new Array('' '','','',''\n''), /* start selector */ selector: function(instance) { var ret = []; // Beginning matches var entry = instance.getToken (); var firstMatch= -1; for (var i = 0; i < instance.options.array.length; i++) { var wasMatch = false; var elem = instance.options.array[i]; var foundPos = instance.options.ignoreCase ? elem.toLowerCase().indexOf(entry.toLowerCase()) : elem.indexOf(entry); while (foundPos != -1) { i...