simple “jquery facebook autocomplete”
you can checkout from code.google at:
https://wharsojo-js.googlecode.com/svn/jquery.autocompletefb/trunk
or
http://wharsojo-js.googlecode.com/files/jquery.autocompletefb-0.1.1.zip

screen-shoot
jquery_acfb_sc_shoot
jquery_acfb_sc_shoot2

28 Comments

  1. Thats pretty coool.

    Can u tell me the license for that if im going to use it in my website.

    Naveen.

  2. same as jQuery License… :)

  3. do you have a demo?

  4. Any api document or demo for it? It’s pretty cool. I saw one which is implemented based on proto. However, I prefer jquery. I will keep watching this:-)

  5. Demos are in the zip! =) Works pretty well, except in IE where the ‘value 1′ part of the demo stuffs up on page load, but thats not a problem with the JS itself. =)

  6. Great port wharsojo. But I noticed a bug with the input field not receiving focus too frequently.

    I made modifications to correct this and even added a new functionality: the ability to delete selected items using the backspace key.

    Check it out here http://williamukoh.com/downloads/modified.jquery.autocomplete.js

    • Hi,

      I have tried your modified script but it doesnt seem to work. Should I do anything else than just past the script content into the already present autocomplete.js file?

  7. Wow cool.

  8. *William

    thx William :) .

  9. Nice plugin, very exciting to see the facebook style popping up all over the place, i think it’s the most intuitive easy to use design yet.

    Found one issue, if you start the match only matches on one side for example, Jack matches Jackson (along with many others), but kson matches Kalida? kinda weird. I think if someone were typing they’d want to match any part of a name or phrase, this would also allow use with account based searches, you could search by either account number or account name or contact name, very nice though.

  10. Did you test it? Its full of bugs.

  11. Thank you.

  12. Another bug you can input same name more than once.

  13. This plugin is very useful but it seems to have a major flaw. It seems I can only put suggestions into the input field what if I want to put something in there that is not a suggestion ? Also I would like to know how I can have use ajax with with this plug in so that I could just call a url that will send back a javascript array or json ?

  14. one more stuff is i am able to put the same entry twice

  15. Fantastic very nice plugin.
    Can you help me, If i want autocomplete e-mail id instead of city.when user enter e-mail it automaticaaly autocomplete but at that time i also want its id/password will you please guide how it possible
    I am waiting for your reply

  16. Hi

    I’m working on incorporating this into another OLE opensource (SAKAI) project. I’m in the process of adding methods and skinning hooks to your plugin and was wondering if this could be incorporated into SVN?

  17. I am wondering how to go about displaying a name in the list, but storing an ID for that name in an input field. I am wanting to display a username, but when the form gets submitted I’d like to have the id being sent, rather than having to look up the ID for every user in the list. Is this possible?

  18. It’s awesome! I really love it. U do help me a lot.

    Wish u could be better and better

  19. just one thing: good job :)

  20. Hi i was wondering if i want to choose from Mysql database directly how could i change this code, Thank you

  21. I am also facing problem same as Ryan. Can you help us to use this control as dropdown, like displayed keys separate than returning values. e.g. showing David but return 0122??

  22. I have the same problem that Ryan and Mubashar

    For example:
    Moises Narvaez = moises-narvaez
    Ruben Dario = ruben-dario64
    Jose Miguel = jose-miguel04

    any idea ?

  23. The simple solution to the problems with storing the ids is to add a hidden id to every item in the list. Then extract this from the entries on postback.

  24. I need to hook up to an event when an item is selected or deleted.
    I have tried to do as in the documentation but it wont work.
    Anyone?

  25. Another bug: when the dropdown appears for the name, and I select the name using TAB key, the item is chosen but the textbox no longer receives focus. It works perfectly if I mouse click the menu item (instead of tab).

    I am using IE 7.

  26. Can this support in the Liferay portal ?


2 Trackbacks/Pingbacks

  1. [...] A fancier looking method, popularized on the desktop by Apple’s Mail.app, and brought to the web most famously by Facebook. Some of these also allow you to type arbitrary text like an email address, in the case of Facebook’s message composition window, but its primary function is to choose one or more items from a set of non-text objects — like your friends on Facebook, who are represented as their name in a box but are actually passed along as a Facebook ID number. Ajaxian discusses MooTools and Prototype implementations, and there’s a similar jQuery implementation. [...]

  2. [...] 9. Facebook Auto Complete [...]

Post a Comment

*
*