Questions tagged [jquery-tokeninput]

Tokeninput is a jQuery plugin which allows your users to select multiple items from a predefined list, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook.

Overview

Tokeninput is a jQuery plugin which allows your users to select multiple items from a predefined list, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook or entering email-ids in Gmail compose pop-up window.

Features

  • Intuitive UI for selecting multiple items from a large list
  • Easy to skin/style purely in css, no images required
  • Supports any backend which can generate JSON, including PHP, Rails, Django, ASP.net
  • Smooth animations when results load
  • Select, delete and navigate items using the mouse or keyboard
  • Client-side result caching to reduce server load
  • Crossdomain support via JSONP
  • Callbacks when items are added or removed from the list
  • Preprocess results from the server with the onResult callback
  • Programmatically add, remove, clear and get tokens
  • Customize the output format of the results and tokens

Screenshots

enter image description here

enter image description here

More at: http://loopj.com/jquery-tokeninput/

279 questions
0
votes
2 answers

how can i set tokeninput parameter on condition as dynamic

I am using tokeninput jquery for autocomplete with asp.net. http://loopj.com/jquery-tokeninput/ i have one textbox and searching parameter is conditional. this jquery is render on loadtime. there is a checkbox, if checkbox is checked searching…
MindFresher
  • 730
  • 4
  • 12
  • 25
0
votes
2 answers

Unexpected results with jQuery-TokenInput pre-populated Data changes

I am getting unexpected results with jQuery-TokenInput pre_populated data-set changes. I have followed the Railscasts - Token Fields and updated the necessary code with Railscasts - Token Fields Revised source code acc. to the newest Rails version. …
0
votes
1 answer

Jquery tokeninput and unobtrusive validation in a MVC 4 application

I am stuck here and would very much appreciate help. I have a form in a razor view with a input field for current city which looks like this: @Html.LabelFor(x => x.UserModel.CurrentCity) @Html.TextBoxFor(x => x.UserModel.CurrentCity, new {…
Jenny Pettersson
  • 241
  • 4
  • 17
0
votes
1 answer

Rails 3.2.8 & JQuery Tokeninput: Trying to add new records for has_many through relationship instead of replacing all current records in a form

I have a database of skills that relate to each other as prerequisites to each other. In an index of skills, I'd like to be able to search through other skills and add 1 or more as prerequisites. It's important to note that I ONLY want the user to…
0
votes
1 answer

Rails jQuery Tokeninput Reload via AJAX

I have an AJAX create action for a rails controller that will select the form and recreate it by doing a render partial of just the form. This way, the error messages get shown when the validation fails. However, one of my text fields is using the…
jedi_batman
  • 31
  • 2
  • 7
0
votes
3 answers

jQuery token-input not processing cross-domain results

I'm creating a chrome extension which uses http://loopj.com/jquery-tokeninput/ to add tokens, see previous question. I am confused as to how to get results from my server to be processed by tokenInput. The following article, What is JSONP?, suggests…
xylar
  • 7,433
  • 17
  • 55
  • 100
0
votes
2 answers

What should be the correct response from web service to display the Jquery token input results?

I am using a Jquery Token Input plugin. I have tried to fetch the data from the database instead of local data. My web service returns the json result is wrapped in xml:
Xavier
  • 1,672
  • 5
  • 27
  • 46
0
votes
2 answers

Tagging from Scratch: the Querying Database issue

@saverio was successful on answer this database query question on Tagging from Scratch: the Tag Cloud Issue Now I'm trying to connect the tagging system with the jQuery-tokenInput to Create and Find tags dynamically as on…
0
votes
2 answers

jquery string interpolation causing problems

I'm using the jquery tokeninput plugin, and I want the json token input data to be dependent upon a value that can be found somewhere in the form. My code looks like this: jQuery(function() { var bparam; if ($('#tokens')) { bparam =…
0
votes
1 answer

jquery tokeninput with PHP

I am using Jquery Tokeninput in my project to display some numbers in a textarea. I have a hidden input field in which I save the JSON string containing the numbers. The JSON looks like patents =…
Wearybands
  • 2,438
  • 8
  • 34
  • 53
0
votes
2 answers

Jquery TokenInput filtering search query with params[:q] not matching first char

I am trying to create a token field using the TokenInput plugin to add members (only the friends of the user creating the group) to a group. So, I have my friendships controller code here: class FriendshipsController < ApplicationController def…
kwyoung11
  • 968
  • 1
  • 10
  • 31
0
votes
1 answer

In TokenInput, I want the resultformatter to display "No result" when the user typing data is not available?

'label_name',));?>
widget('application.extensions.tokeninput.TokenInput', array( …
AravindRaj
  • 93
  • 3
  • 10
0
votes
1 answer

Token Fields - Record Inserted and then Deleted

I am trying to get token fields to work based on the RailsCasts episode #258 and I can submit the form just fine. When I go back to my main page, my tag does not appear. Looking at the server logs on my local machine, I can see... User Load (0.2ms)…
unlikely_monkey
  • 183
  • 4
  • 15
0
votes
2 answers

JQuery TokenInput

I am using jQuery tokeninput to pre-populate a text area. I have an array of JSON to pre-populate the text area, The text area is populated correctly but when I look at the
  • 's created by this plugin it just contain the name of each entry. How…
  • Marie Luise
    • 5
    • 1
    • 6
    0
    votes
    1 answer

    In rails, using jquery token input and the tags are not working

    <%= f.label :author_tokens, "Authors" %>
    <%= f.text_area :author_tokens, "data-pre"=> @article.authors.map(&:attributes).to_json %>
    This is my field for tokens. all authors name is listed here sucessfully.…
    regmiprem
    • 735
    • 2
    • 14
    • 41