Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Triggered @mention Autocomplete like Facebook, Twitter and Google+

I have been trying to make something like Facebook @tagged Friend name add in text area. I have been using jquery ui auto-complete to do the job , it's working fine except that I want some symbol such as @ or ~ to start the tag, I can't figure it out how. Anyone has ideas ? I'm using it for multiple tag of friends just like Facebook.

like image 911
Sakshi Sharma Avatar asked Mar 26 '12 10:03

Sakshi Sharma


4 Answers

I wrote a plugin to accomplish this:

http://www.hawkee.com/snippet/9391/


$('#inputbox').triggeredAutocomplete({
    hidden: '#hidden_inputbox',
    source: "/search.php",
    trigger: "@" 
});
like image 130
Hawkee Avatar answered Nov 10 '22 13:11

Hawkee


You can use a bootstrap plugin library that I wrote. It works on ContentEditable divs: http://sandglaz.github.com/bootstrap-tagautocomplete/

like image 29
Nada Aldahleh Avatar answered Nov 10 '22 15:11

Nada Aldahleh


Here's another one (triggered by a starting character like @) http://www.9lessons.info/2010/08/tag-friends-with-jquery-ajax-and-php.html

like image 1
Deepak Thomas Avatar answered Nov 10 '22 14:11

Deepak Thomas


THIS MAY BE USEFUL a sample one., : http://jsfiddle.net/suneeshtr/6ymLD/1/ also check :http://www.hawkee.com/snippet/9391/

like image 1
Suneesh Avatar answered Nov 10 '22 13:11

Suneesh