issa-tseng / awesomecomplete Goto Github PK
View Code? Open in Web Editor NEWA lightweight autocomplete plugin for jQuery. Autocomplete that doesn't suck — I think.
Home Page: http://dontexplain.com/2009/08/jquery-plugin-lautocomplete/
A lightweight autocomplete plugin for jQuery. Autocomplete that doesn't suck — I think.
Home Page: http://dontexplain.com/2009/08/jquery-plugin-lautocomplete/
i dont know how to use dataMethod. i setup like this:
$(function()
{
$('#friend_id2').awesomecomplete({
//more config
dataMethod: dataMethod
});
});
var dataMethod = function(term, $awesomecomplete, onData)
{
onData = [
{ name: 'Ryan Lapin', email: '[email protected]', phone: '(512) 829-4442' },
{ name: 'Angela Kapoor', email: '[email protected]', phone: '(435) 149-4341' },
{ name: 'Pam Martin', email: '[email protected]', phone: '(204) 189-7995' }
];
return onData;
};
it didn't work for me. I want to call ajax and get data from server
The default value function references the awesomecomplete config as 'config', but no such variable is defined in this method.
The 'if' in defaultRenderFunction checks whether topMatch is equal to 'name', but:
I guess this should be "if (topMatch === null)" instead.
A usefull feature would be to submit a different value to the server instead of what it is in the textbox.
Maybe create a hidden field?
Greetings!
The path of the link to open the wiki page (inside the "Quick Start" section of file README.textile) seems not to work:
https://wiki.github.com/clint-tseng/Awesomecomplete
The server url responds to me with "Malformed request".
We didn't receive a proper request from your browser. Please contact us if the problem persists.
Would you mind to fix that, if possible?
Thanks in advance!
hi clint-tseng,
hitting enter on a suggestion in Opera 10 on mac submits the form instead of confirming
greets an thanks for awesomecomplete,
nics
All regular expression special characters within terms are being replaced with the string '$1' because there are no parentheses to form a match.
For example autocompleting "test+" will never show "test+test" as a match as it's being replaced with "test$1".
Is it possible to retrieve the data asynchronously via AJAX call?
I'm trying to add a tooltip style bubble on li.active if it has focus for longer than 150ms.
Maybe this is already possible?
Thanks for a fantastic plugin, it's doing so many things so right!
As in the title :) Looks like you forgot to pass config.typingDelay...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.