GithubHelp home page GithubHelp logo

issa-tseng / awesomecomplete Goto Github PK

View Code? Open in Web Editor NEW
52.0 52.0 7.0 69 KB

A lightweight autocomplete plugin for jQuery. Autocomplete that doesn't suck — I think.

Home Page: http://dontexplain.com/2009/08/jquery-plugin-lautocomplete/

CSS 6.37% JavaScript 93.63%

awesomecomplete's People

Contributors

adamjudd avatar imanmh avatar issa-tseng avatar mackuba avatar thanosp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

awesomecomplete's Issues

how to use dataMethod

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

wrong check in defaultRenderFunction

The 'if' in defaultRenderFunction checks whether topMatch is equal to 'name', but:

  1. name field doesn't have to be called 'name';
  2. name field should never appear in topMatch anyway (see line: if ((field != config.nameField) ...)

I guess this should be "if (topMatch === null)" instead.

Link to Wiki not working.

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!

enter on Opera 10

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

Escaping of regex special chars does not work properly

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".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.