alexgorbatchev/jquery-textext — Issue #12: Facebook-like tagging
Author: cmer
Created: 2012-01-17 20:10:51+00:00
State: open

I am trying to replicate Facebook's in-comment tagging capability. Basically, when you start typing a name, it triggers an Ajax search. It waits for the first 2 characters (1 upper case and 1 lower case) to do so and shows name suggestions.

The closest example I've found to this is http://textextjs.com/manual/examples/autocomplete-with-tags.html but it turns everything into a tag on Enter, which isn't the expected behavior in this case. I want to be able to do:

"Hey [Alex Gorbatchev], check this out!"

http://textextjs.com/manual/examples/ajax-with-filter-tags-and-autocomplete.html is another close example of what I want to achieve, but it rejects everything that is not in the tag list.

Is there a way to accomplish what I'm looking with this plugin? Also, is there a way to know what was a tag and what wasn't on the "server side"? From what I understand it will just send a simple string back. I'd like to know, for example, that "Alex Gorbatchev" was tagged on the client-side.

Also, in the autocomplete-with-tags example, clicking on the suggestion in the drop-down does not auto-complete the item. I'm not sure if that's a bug. I will file a separate issue if it is.