<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>LoopJ - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-445dc1bd" type="application/json"/><link>http://loopj.disqus.com/</link><description></description><language>en</language><lastBuildDate>Wed, 25 Nov 2009 15:58:30 -0000</lastBuildDate><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-24082178</link><description>I hacked up the source a bit to allow me to call add_token properly.  I had to move the contents of $.TokenList inside of $.tokenInput's return statement so that I could properly get at the elements.  It was fairly painless, I just had to say var input = this; before everything.  After that, I added a public version of add_token:&lt;br&gt;&lt;br&gt;this.add_token_values = function(id, text) {&lt;br&gt;	insert_token(id, text);&lt;br&gt;	hidden_input.val(hidden_input.val() + id + ",");&lt;br&gt;}&lt;br&gt;&lt;br&gt;I think the long term fix is to post json to the server, so that if you're doing error handling and reading back in the post values, you can get at the name and id, not just the id.  That way also, if I wanted default values, I could set the value of the text box to {"id":1,"name":"langdon"}.&lt;br&gt;&lt;br&gt;Would be great to see this updated a bit with some bug fixes, new features, and refactoring.  I'd be glad to help out in any way I can.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">langdon</dc:creator><pubDate>Wed, 25 Nov 2009 15:58:30 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-24032408</link><description>Will there ever be a 2.0 release of this to cover all the fixes in the comments?  I'm currently using  Dirk Bergstrom's patch, with an additional IE8 patch of my own, but now I find myself needing a way to repopulate the field when an error occurs after posting... since only the ID gets submitted to the form, the default value patch of Dirk's only shows ids... is there a way around this?  I can't seem to figure out a way to manually call add_token outside of the extension it self.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">langdon</dc:creator><pubDate>Wed, 25 Nov 2009 09:22:14 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-23940856</link><description>Ditto. Is there a way to clear tokens? I've tried using...&lt;br&gt;&lt;br&gt;$('.token-input-list span').click();&lt;br&gt;&lt;br&gt;...with limited success, but I don't want the drop-down to reappear. Seems kludgy to do it that way. Thanks in advance.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pablo123</dc:creator><pubDate>Tue, 24 Nov 2009 07:04:39 -0000</pubDate></item><item><title>Re: 5 Must Have Wordpress Plugins</title><link>http://loopj.com/2009/10/01/5-must-have-wordpress-plugins/#comment-23933372</link><description>All in One SEO pack is definitely a must. Another one is Google Analytic plugin..</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sheeparcade</dc:creator><pubDate>Tue, 24 Nov 2009 02:55:15 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-23816619</link><description>Sorry, completely lost.  I got this plugin working almost %100 despite the fact this is the first time I have ever used something build with json. I like it very much but the one thing I can not figure out is how to grab the results from the text field.  How do you properly use settings.jsonContainer to achieve this?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bandito40</dc:creator><pubDate>Sun, 22 Nov 2009 09:52:40 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-23571681</link><description>I'm looking for the same functionality.  Has anyone an idea how to achieve that?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas</dc:creator><pubDate>Thu, 19 Nov 2009 17:54:45 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-23154815</link><description>thank's for your work.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mozgun</dc:creator><pubDate>Sun, 15 Nov 2009 16:45:06 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-23121965</link><description>For me, the "umlaute" work well with Chrome or Firefox (running on Windows)&lt;br&gt;&lt;br&gt;They don't work with Firefox under Linux, oder MacOS. The reason for this, is that keycode in the function is_printable_character(keycode) is Null for these browsers.&lt;br&gt;&lt;br&gt;Another issue concerns IE. Here the keycodes are correkt, but still no suggestion box rises. I haven't been able to dig deap enough for the cause, yet.&lt;br&gt;&lt;br&gt;Hope, some of you got an idea how to fix this.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jochen</dc:creator><pubDate>Sun, 15 Nov 2009 06:59:42 -0000</pubDate></item><item><title>Re: A Django Developer&amp;#8217;s Views on Rails</title><link>http://loopj.com/2009/05/23/a-django-developers-views-on-rails/#comment-22974921</link><description>I really like this site.Thanks for sharing this.Thanks for giving good information.&lt;a href="http://www.mcsetoday.com" rel="nofollow"&gt;mcse practice exams&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pass4sure5</dc:creator><pubDate>Sat, 14 Nov 2009 04:40:15 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-22865443</link><description>The problem is in your server-side script. This plugin will populate all tokens received from the server-side script, so the behaviour you are seeing with the static file is exactly as it should be, i.e. display all the static data. Remember filtering should be implemented in the serser-side script.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">B</dc:creator><pubDate>Thu, 12 Nov 2009 18:46:49 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-22865361</link><description>Hi, since you have mentioned that drop down doesn't filter, is your MYSQL query correct?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yogesh</dc:creator><pubDate>Thu, 12 Nov 2009 18:45:02 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-22864444</link><description>This does EXACTLY what we need it to do for our users. We have several forms where this would help tremendously in terms of user experience and cleaner data collection. So thanks so much to all for developing this! &lt;br&gt;&lt;br&gt;I have downloaded all the parts and tried this out on my server (LAMP). It works if I change nothing. Of course, we need this to work with our data so I'm doing a database call to a table with about 2,400 records. When I start typing into the text field the script hangs at "Searching...". I created a static file with just 300 records and that provides the drop-down and highlights letters as they are entered. However, the drop-down doesn't filter, and when I type in data (eg., "asdfasdf") that should match nothing, I still see the populated drop-down instead of no results. &lt;br&gt;&lt;br&gt;I apologize in advance for bugging you all with this. I appreciate any help, advice, insights you can offer us. THANK YOU!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tinawina</dc:creator><pubDate>Thu, 12 Nov 2009 18:23:52 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-22633565</link><description>Richard:&lt;br&gt;&lt;br&gt;Check the patch in comment for few IE related fixes.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kurund</dc:creator><pubDate>Tue, 10 Nov 2009 16:22:59 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-22632815</link><description>Problem: Since token input adds extra comma at the end, it fails in IE. Below code fixes this issue. &lt;br&gt;&lt;br&gt;Modified: trunk/packages/jquery/plugins/jquery.tokeninput.js&lt;br&gt;===================================================================&lt;br&gt;--- trunk/packages/jquery/plugins/jquery.tokeninput.js	2009-11-10 20:38:01 UTC (rev 25016)&lt;br&gt;+++ trunk/packages/jquery/plugins/jquery.tokeninput.js	2009-11-10 21:08:35 UTC (rev 25017)&lt;br&gt;@@ -277,7 +277,13 @@&lt;br&gt;                 hide_dropdown();&lt;br&gt; &lt;br&gt;                 // Save this token id&lt;br&gt;-                var id_string = li_data[i].id + ","&lt;br&gt;+                var id_string = li_data[i].id;&lt;br&gt;+                &lt;br&gt;+                // IE fixes: Remove extra comma at the end&lt;br&gt;+                if ( hidden_input.val( ) ) {&lt;br&gt;+        		    id_string = ',' + id_string;    &lt;br&gt;+        		}&lt;br&gt;+        		&lt;br&gt;                 hidden_input.val(hidden_input.val() + id_string);&lt;br&gt;             }&lt;br&gt;         }&lt;br&gt;@@ -343,7 +349,13 @@&lt;br&gt;         hide_dropdown();&lt;br&gt; &lt;br&gt;         // Save this token id&lt;br&gt;-        var id_string = li_data.id + ","&lt;br&gt;+        var id_string = li_data.id;&lt;br&gt;+&lt;br&gt;+        // IE fixes: Remove extra comma at the end&lt;br&gt;+        if ( hidden_input.val( ) ) {&lt;br&gt;+		    id_string = ',' + id_string;    &lt;br&gt;+		}&lt;br&gt;+		&lt;br&gt;         hidden_input.val(hidden_input.val() + id_string);&lt;br&gt;         &lt;br&gt;         token_count++;&lt;br&gt;@@ -409,15 +421,31 @@&lt;br&gt; &lt;br&gt;         // Delete this token's id from hidden input&lt;br&gt;         var str = hidden_input.val()&lt;br&gt;-        var start = str.indexOf(token_data.id+",");&lt;br&gt;-        var end = str.indexOf(",", start) + 1;&lt;br&gt; &lt;br&gt;-        if(end &amp;gt;= str.length) {&lt;br&gt;-            hidden_input.val(str.slice(0, start));&lt;br&gt;-        } else {&lt;br&gt;-            hidden_input.val(str.slice(0, start) + str.slice(end, str.length));&lt;br&gt;-        }&lt;br&gt;+        // var start = str.indexOf(token_data.id+",");&lt;br&gt;+        // var end = str.indexOf(",", start) + 1;&lt;br&gt;+        // &lt;br&gt;+        // if(end &amp;gt;= str.length) {&lt;br&gt;+        //     hidden_input.val(str.slice(0, start));&lt;br&gt;+        // } else {&lt;br&gt;+        //     hidden_input.val(str.slice(0, start) + str.slice(end, str.length));&lt;br&gt;+        // }&lt;br&gt;         &lt;br&gt;+        // IE : Fixes to remove extra comma&lt;br&gt;+        var resultantTokenStr = '';&lt;br&gt;+    	// token string consist of multiple tokens.&lt;br&gt;+    	if ( str.indexOf( ',' ) != -1 ) {&lt;br&gt;+    	    var deleteTokenStr = ',' + token_data.id;&lt;br&gt;+    	    if ( str.indexOf( token_data.id ) == 0 ) {&lt;br&gt;+    		    deleteTokenStr =  token_data.id + ',';&lt;br&gt;+    	    }&lt;br&gt;+    	    var start = str.indexOf( deleteTokenStr );&lt;br&gt;+    	    var end   = start + deleteTokenStr.length;&lt;br&gt;+    	    resultantTokenStr = str.slice( 0, start ) + str.slice( end, str.length );&lt;br&gt;+    	}&lt;br&gt;+&lt;br&gt;+    	hidden_input.val( resultantTokenStr );&lt;br&gt;+    	&lt;br&gt;         token_count--;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kurund</dc:creator><pubDate>Tue, 10 Nov 2009 16:16:18 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-22153062</link><description>Do you intend to update this plugin? There are some minor problems: it would be nice, if the user could enter (optionally) words that are not autocompleted, just entered. Now you delete the "unidentified" text when the user leaves the input box. Another thing is it would be nice, if displaying the "Searching..." hint would be optional. Thanks a lot. It's a wonderful tool for us.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andris</dc:creator><pubDate>Sat, 07 Nov 2009 17:16:42 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-21966966</link><description>thanks. I was looking for this. It fixed ie mouse click bug.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Name</dc:creator><pubDate>Thu, 05 Nov 2009 15:16:46 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-21911419</link><description>Great plugin!  I was looking through your code and had a question about the run_search method, specifically constructing $.post or $.get.  You're constructing a string and leaving the data parameter empty: &lt;br&gt;&lt;br&gt;    $.post(settings.url + queryStringDelimiter + settings.queryParam + "=" + query, {}, callback, settings.contentType);&lt;br&gt;&lt;br&gt;Is there any reason you wouldn't do this, which would build the string for you?&lt;br&gt;&lt;br&gt;    $.post(settings.url, {q:query}, callback, settings.contentType);</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Name</dc:creator><pubDate>Wed, 04 Nov 2009 21:08:06 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-21875072</link><description>Hi,&lt;br&gt;&lt;br&gt;I posted a version to handle local lookups here:&lt;br&gt;&lt;br&gt;&lt;a href="https://www.modernsignal.com/tokenizedautocompleteblog" rel="nofollow"&gt;https://www.modernsignal.com/tokenizedautocompl...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam</dc:creator><pubDate>Wed, 04 Nov 2009 13:53:54 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-21847993</link><description>any example or more details how to use predefined list ?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">alienbb</dc:creator><pubDate>Wed, 04 Nov 2009 05:58:36 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-21742276</link><description>Yes! Problem exist, and i can't fix it.&lt;br&gt;In json reply name contain ' character. Escaping this char not fixed error. Maybe i'm stupid but i'd very appreciated if you post fix.&lt;br&gt;&lt;br&gt;And i found bug in FF 3.0.x&lt;br&gt;When page loaded and i click on input field, mouse cursor not focused. I must click right mouse button and cursor will focus in field, and only after this, i can input text.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Viper</dc:creator><pubDate>Tue, 03 Nov 2009 02:27:30 -0000</pubDate></item><item><title>Re: A Django Developer&amp;#8217;s Views on Rails</title><link>http://loopj.com/2009/05/23/a-django-developers-views-on-rails/#comment-21680179</link><description>Well, for one bit, I don't think "using regexp for routing" is a plus for Django... using the full language palette is much more flexible - and who else will write/config routes than a developer? Django developers could use python to write routers, rails developers use ruby to do so. Why is a more limited regexp-based solution superior?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ochronus</dc:creator><pubDate>Mon, 02 Nov 2009 11:50:56 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-21496439</link><description>Answering my own question: tokenLimit:1</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pablo123</dc:creator><pubDate>Sun, 01 Nov 2009 01:08:04 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-21484526</link><description>Is there a way to limit the input to only one entry, instead of multiple entries? Thanks!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pablo123</dc:creator><pubDate>Sat, 31 Oct 2009 17:13:06 -0000</pubDate></item><item><title>Re: Python API for TheTVDB.com</title><link>http://loopj.com/2009/05/06/python-api-for-thetvdbcom/#comment-20932140</link><description>Hi again,&lt;br&gt;&lt;br&gt;I've slightly changed your API to support different languages, so if you are interested, you can get it out of the code branch of my lately announced project:&lt;br&gt;&lt;br&gt;&lt;a href="http://bazaar.launchpad.net/%7Epatlkli/tv-series-renamer/trunk/annotate/head:/tvdb_api.py" rel="nofollow"&gt;http://bazaar.launchpad.net/~patlkli/tv-series-...&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thank you again for the great API base,&lt;br&gt;Patrick</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Patrick Geltinger</dc:creator><pubDate>Sat, 24 Oct 2009 12:41:47 -0000</pubDate></item><item><title>Re: jQuery Plugin: Tokenizing Autocomplete Text Entry</title><link>http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/#comment-20905094</link><description>wow,,thanks you,,,</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">himawans</dc:creator><pubDate>Fri, 23 Oct 2009 23:33:31 -0000</pubDate></item></channel></rss>