jquery-tokeninput

jQuery Token Input (tokenize input) is not working on modal popup, list hidden under popup

∥☆過路亽.° 提交于 2019-12-19 05:42:51
问题 I am using a modal popup up control in jQuery, the popup has an input text powered by jQuery Tokenize input plugin. The problem is when i type something on modal popup text box, the search results by tokenize plugin are shown hidden under the popup. Actually they should apprear on top of all controls. Would someone please help me as I am a beginner. Try to seek help from thread below, zindex is not working. https://github.com/loopj/jquery-tokeninput/issues/190 here is the input control that i

Using jquery TokenInput without default 'name'

我们两清 提交于 2019-12-19 04:01:53
问题 Im trying to use the jquery tokeninput found here: http://loopj.com/jquery-tokeninput/ Following the guide from railcasts: http://railscasts.com/episodes/258-token-fields By default, it required a 'name' column on the table/json.. Any way to customize to change it to something else (in my case, 'account_number')? (in the reailcast, he says if you dont have a 'name' column, youll require extra customization) 回答1: The magical lines are <%= f.text_field :author_tokens, "data-pre" => @book

jQuery Tokeninput: readonly not working

柔情痞子 提交于 2019-12-13 16:29:19
问题 I'm using the plugin found at http://loopj.com/jquery-tokeninput/ in a field which creates a list of users with admin access to a web application. Searching, adding and removing users works perfectly. However, I want to use the 'readonly' functionality to stop people removing themselves from the list (which would cause an issue since they wouldn't be able to see the page). The plugin suggests adding the "readonly" : true attribute to the JSON which sets the page up. I have done this but I am

Jquery tokenInput not prepopulating the text_field

£可爱£侵袭症+ 提交于 2019-12-13 05:24:56
问题 Hi I've tokenInput documentation but somehow my text_field category_tokens is not prepopulated with categories while editing. Here are code snippets <input id="product_category_tokens" type="text" size="30" name="product[category_tokens]" data-pre="[{"created_at":"2010-09-13T03:33:17Z","description":"","id":x,"name":"Kitchen & Dining ","parent_id":xx,"permalink":"kitchen-dining","updated_at":"2011-01-05T11:17:10Z"}]" style="display: none;"> $(function() { $("#product_category_tokens")

using tokeninput jquery plugin on more than one input on a page

我怕爱的太早我们不能终老 提交于 2019-12-12 19:09:24
问题 I'm using the jquery tokeninput plugin from loopj.com Here is my JS File: $(document).ready(function() { // Token input plugin: $("#issuer").tokenInput("/issuers.json",{ crossDomain: false, theme: "facebook", prePopulate: $("#issuer").data("pre"), preventDuplicates: true }); $("#shareholder").tokenInput("/shareholders.json",{ crossDomain: false, theme: "facebook", prePopulate: $("#shareholder").data("pre"), preventDuplicates: true }); }); Here is my Markup: <form method="post" action="

Tagging from Scratch: the Querying Database issue

霸气de小男生 提交于 2019-12-12 04:33:59
问题 @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 http://railscasts.com/episodes/258-token-fields-revised. My guess is that is a Query problem to the Posgresql Database. I've got Postgresql correctly installed jQuery-tokenInput is on its place on Application.js //= require jquery.tokeninput Somehow it can load the tags from

tokeninput showing all data instead of filterting

蹲街弑〆低调 提交于 2019-12-11 20:16:20
问题 I have a jquery-tokeninput for selecting members in an app. The dropdown when typed in shows all data rather than filtering. Funny thing it it puts in bold what it should be filtering by. JSON: [{"name": "Bill Bailey", "id": 2}, {"name": "Will Pimblett", "id": 3}, {"name": "Frank Surname", "id": 4}, {"name": "Mary Smith", "id": 5}, {"name": "Will Pimblett", "id": 6}] HTML: <div class="token-input-container"> <form action="." method="GET"> <div class="input-append"> <input type="text" id=

Problems with the jquery plugin Tokeninput

拥有回忆 提交于 2019-12-11 18:38:17
问题 I use the jquery plugin Tokeninput that allow autocomplete in textBox. I would prevent user from selecting duplicate words inn the dropdown of autocomplete. Does anybody have any suggestion to resolve this problem? Thanks a lot in advance. 回答1: It looks like there is a setting for preventDuplicates which prevents user from selecting duplicate values by setting this to true. The default is false, you would want to set the to true. $(document).ready(function() { $("#demo-input").tokenInput(

How to pass selected value as extra parameter to ajax call

跟風遠走 提交于 2019-12-11 04:35:15
问题 my coding part $("#demo-input").tokenInput("data/autosuggest-search-city.php", { searchDelay: 2000, minChars: 3, tokenLimit: 10 }); I want to send the selected values as extra parameter to "data/autosuggest-search-city.php". For example, Initially I search and select one value from list then again searching, this time I want to send the 1st selected value to server. How to do this? 回答1: TokenInput plugin doesn't support that natively. You can however make a simple workaround to update "AJAX

create tokens in jquery token input

假装没事ソ 提交于 2019-12-10 14:29:16
问题 Presently my jquery token input is working perfectly fine. Am not able to create token, which is not in the list I have seen here, that this functionality is implemented. But there is no documentation on how we i can use this. Can any one help me with documentation or demo js_js.js $(document).ready(function () { $("#job_skills").tokenInput("/jobs/search_job_skills", { theme: "facebook", preventDuplicates: true, hintText: 'Add skills need for job', searchingText: 'searching skills...',