Upgraded jQuery Tag Suggestions

After lots of great feedback, I’ve upgraded the jQuery Tag Suggest Plugin.

This post covers the fixes and upgrades.

Fixes

  1. Clicking between suggestions
  2. Mixed case tags confusing suggestions
  3. Subtle bug when deleting suggestions in the input field

Upgrades

  1. Patched in separator option (via – cheers Brian)
  2. Added filtering to prevent already selected tags appearing in the suggestions

If you have any further feedback or suggestion that can make the tagging plugin better, please drop me a comment.

21 Responses to “Upgraded jQuery Tag Suggestions”

  1. Hi there, great upgrade… but.
    Is the tag filtering enabled by default? Or am I missing something? It’s not working!

    Hugs!

  2. The filtering is turned on by default (since it makes sense to always have on).

    I think you may be running from a cached copy of the script – make sure this link shows version 1.3:

    http://remysharp.com/downloads/tag.js

    I’ve got fairly aggressive caching on my server side.

  3. [...] Yesterday remy sharp update jQuert Tag Suggentions plugin a list of fixes can be found here. [...]

  4. Remy,
    The filtering is really a nice thing to have, but it is not applied when you get the suggestion using url. You can check a new patch I made http://bcardiff.googlepages.com/Tag-ApplyFilterWhenUsingUrl.patch .

    Nice work!!

  5. Bah – you’re right. I forgot to add that. I’m not quite sure I want to use $.grep in every case, or whether just on the Ajax hit…either way, I’ll plug that in shortly.

    Cheers for the catch!

  6. @Brian – superb. I’ve added the patch in with a slight amend to handle ignoring casing. Cheers.

  7. [...] jQuery Tag Suggestion- The same tag suggesting as-you-type support that del.icio.us is [...]

  8. [...] are not loaded. When scrolling down they are loaded when needed.Check out their demo page 45) jQuery Tag Suggestion- The same tag suggesting as-you-type support that del.icio.us is uses.Check out their demo [...]

  9. Can you make the suggestion be ANY character in a string instead of the starting character?

    If you dont like the idea. What line should be modified for this to work?
    This on is working, but with Ajax, but i need it to be with local data sources
    http://wiseguysonly.com/demos/ajax-autocompletion/autocomplete.php

    As a reference link, I leave you a “winamp autocomplete” imitation forum thread
    http://www.ozgrid.com/forum/showthread.php?t=45097

    This is what i need with your script.
    Thanks.

  10. I’ve just suggest in http://plugins.jquery.com/node/1947 the usage of async requests to request suggestions.

  11. [...] out their demo page 45) jQuery Tag Suggestion- The same tag suggesting as-you-type support that del.icio.us is [...]

  12. [...] out their demo page 45) jQuery Tag Suggestion- The same tag suggesting as-you-type support that del.icio.us is [...]

  13. [...] out their demo page 45) jQuery Tag Suggestion- The same tag suggesting as-you-type support that del.icio.us is [...]

  14. [...] out their demo page 45) jQuery Tag Suggestion- The same tag suggesting as-you-type support that del.icio.us is [...]

  15. Is there an easy way to have certain tags show up by default before the user begins typing anything? Thanks!

  16. [...] example using the tagSuggestion [...]

  17. plz any bdy help me how to do “column resizing” n “column swapping” in table using jQuery

  18. [...] are not loaded. When scrolling down they are loaded when needed.Check out their demo page 45) jQuery Tag Suggestion- The same tag suggesting as-you-type support that del.icio.us is uses.Check out their demo page ‘ [...]

  19. Hi Remy, in FF 3.0.7 and TagSuggest 1.4, using jQuery 1.3.2, i found a bug.
    Line 174: tagsElm.blur().focus();
    blur() seems to be responsible for an error. If i remove it to: tagsElm.focus(); then it works ok. I checked it on FF 3.0.7 (mac) with last version of jQuery only. Hope these informations will help. Greetings, Michal/mono

  20. Is it possible to preserve the case of the words in the list, rather than convert everything to lower case and only convert it to lower for comparison?

    Thanks for the great plugin.

  21. How easy is it to get the code for this to work with Live events ? can’t seem to get it to work.

Leave a Reply
Not required

CODE: Please escape code and wrap in <pre><code>, doing so will automatically syntax highlight