<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for BeaverBlog</title>
	<atom:link href="http://blog.crazybeavers.se/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.crazybeavers.se</link>
	<description>A beaver bloging about webdevelopment, XML and .Net</description>
	<lastBuildDate>Wed, 01 Sep 2010 14:48:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on jQuery Tag Editor 1.4 by Rene van den Berg</title>
		<link>http://blog.crazybeavers.se/index.php/archive/jquery-tag-editor-1-4/comment-page-1/#comment-641</link>
		<dc:creator>Rene van den Berg</dc:creator>
		<pubDate>Wed, 01 Sep 2010 14:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crazybeavers.se/?p=171#comment-641</guid>
		<description>I&#039;ve created a small patch that allows generating events when the tags are changed (added or removed). The patch needs some manual work, since it&#039;s based on a slightly older version of the tag-editor code. The event carries a serialized version of the currently selected tags.

diff --git a/public/javascripts/plugins/jquery.tag.editor.js b/public/javascripts/plugins/jquery.tag.editor.js
@@ -165,7 +165,13 @@
                     itemBase.push($.trim($(items[i]).text()));
                 }
                 if (options.continuousOutputBuild) {
+                    var oldVal = hiddenText.val();
                     hiddenText.val(itemBase.join(options.separator));
+                    if (oldVal != hiddenText.val()) {
+                       hiddenText.trigger(&quot;tagsChanged&quot;, {
+                           tags : hiddenText.val()
+                       }); 
+                    }
                 }
             }</description>
		<content:encoded><![CDATA[<p>I&#8217;ve created a small patch that allows generating events when the tags are changed (added or removed). The patch needs some manual work, since it&#8217;s based on a slightly older version of the tag-editor code. The event carries a serialized version of the currently selected tags.</p>
<p>diff &#8211;git a/public/javascripts/plugins/jquery.tag.editor.js b/public/javascripts/plugins/jquery.tag.editor.js<br />
@@ -165,7 +165,13 @@<br />
                     itemBase.push($.trim($(items[i]).text()));<br />
                 }<br />
                 if (options.continuousOutputBuild) {<br />
+                    var oldVal = hiddenText.val();<br />
                     hiddenText.val(itemBase.join(options.separator));<br />
+                    if (oldVal != hiddenText.val()) {<br />
+                       hiddenText.trigger(&#8220;tagsChanged&#8221;, {<br />
+                           tags : hiddenText.val()<br />
+                       });<br />
+                    }<br />
                 }<br />
             }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery Tag Editor 1.4 by Sorin Haidau</title>
		<link>http://blog.crazybeavers.se/index.php/archive/jquery-tag-editor-1-4/comment-page-1/#comment-639</link>
		<dc:creator>Sorin Haidau</dc:creator>
		<pubDate>Tue, 31 Aug 2010 07:53:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crazybeavers.se/?p=171#comment-639</guid>
		<description>When using multiple input fields in one page, is there a way to use a Get Tags button for each one?

Pressing Get Tags button 1 will extract the results entered from input 1
Pressing Get Tags button 2 will extract the results entered from input 2
and so on...</description>
		<content:encoded><![CDATA[<p>When using multiple input fields in one page, is there a way to use a Get Tags button for each one?</p>
<p>Pressing Get Tags button 1 will extract the results entered from input 1<br />
Pressing Get Tags button 2 will extract the results entered from input 2<br />
and so on&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery Tag Editor 1.4 by Nicolas Maisonnevue</title>
		<link>http://blog.crazybeavers.se/index.php/archive/jquery-tag-editor-1-4/comment-page-1/#comment-636</link>
		<dc:creator>Nicolas Maisonnevue</dc:creator>
		<pubDate>Mon, 09 Aug 2010 13:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crazybeavers.se/?p=171#comment-636</guid>
		<description>(oups, forget the remove step, it&#039;s a mistake)
nicolas</description>
		<content:encoded><![CDATA[<p>(oups, forget the remove step, it&#8217;s a mistake)<br />
nicolas</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery Tag Editor 1.4 by Nicolas Maisonneuve</title>
		<link>http://blog.crazybeavers.se/index.php/archive/jquery-tag-editor-1-4/comment-page-1/#comment-635</link>
		<dc:creator>Nicolas Maisonneuve</dc:creator>
		<pubDate>Mon, 09 Aug 2010 11:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crazybeavers.se/?p=171#comment-635</guid>
		<description>Contribution (bug/improvement): less code + tag uniqueness 
current version : 1.4(.1 the same bug)
if you tape twice the same tag in the input (e.g. &quot; tag1, tag2, tag1&quot;), you will add 3 tags and not 2 tags.  To correct this misbehavior, 
Add: 
in the addTag function 
                for (var i = 0; i   itemBase.push(tag);

Remove 
 in the function buildArray() {
&lt;== for (var i = 0; i &lt; items.length; i++) {
&lt;==                    itemBase.push(jQuery.trim(jQuery(items[i]).text()));
&lt; ==              }

best,
nicolas maisonneuve</description>
		<content:encoded><![CDATA[<p>Contribution (bug/improvement): less code + tag uniqueness<br />
current version : 1.4(.1 the same bug)<br />
if you tape twice the same tag in the input (e.g. &#8221; tag1, tag2, tag1&#8243;), you will add 3 tags and not 2 tags.  To correct this misbehavior,<br />
Add:<br />
in the addTag function<br />
                for (var i = 0; i   itemBase.push(tag);</p>
<p>Remove<br />
 in the function buildArray() {<br />
&lt;== for (var i = 0; i &lt; items.length; i++) {<br />
&lt;==                    itemBase.push(jQuery.trim(jQuery(items[i]).text()));<br />
&lt; ==              }</p>
<p>best,<br />
nicolas maisonneuve</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery Tag Editor 1.4 by Tomas</title>
		<link>http://blog.crazybeavers.se/index.php/archive/jquery-tag-editor-1-4/comment-page-1/#comment-562</link>
		<dc:creator>Tomas</dc:creator>
		<pubDate>Fri, 11 Jun 2010 19:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crazybeavers.se/?p=171#comment-562</guid>
		<description>Great work guys, I like it!

I have one problem though. I am trying to make tagEditor to work with jQuery UI autocomplete and I can&#039;t get it working. It adds tag multiple times when selected using autocomplete box. When I add tag manually it works fine. Here is my code:

            $(&quot;#id_tags&quot;).tagEditor(
            {
                items: [],
                confirmRemoval: true,
                completeOnSeparator: true,
                continuousOutputBuild: true
            });
            $(&quot;#id_tags&quot;).autocomplete(
                { source:&#039;{% url tags %}&#039;,
                  minChars: 2 ,
                  select: function(event, ui) {
                                $(&quot;#id_tags&quot;).tagEditorAddTag(ui.item.value);
                                $(&quot;#id_tags&quot;).val(&#039;&#039;);
                                return false;
                            }
                }
            );   

I use jQuery 1.4.2 and UI 1.8.2.

Thanks a lot,

Tomas</description>
		<content:encoded><![CDATA[<p>Great work guys, I like it!</p>
<p>I have one problem though. I am trying to make tagEditor to work with jQuery UI autocomplete and I can&#8217;t get it working. It adds tag multiple times when selected using autocomplete box. When I add tag manually it works fine. Here is my code:</p>
<p>            $(&#8220;#id_tags&#8221;).tagEditor(<br />
            {<br />
                items: [],<br />
                confirmRemoval: true,<br />
                completeOnSeparator: true,<br />
                continuousOutputBuild: true<br />
            });<br />
            $(&#8220;#id_tags&#8221;).autocomplete(<br />
                { source:&#8217;{% url tags %}&#8217;,<br />
                  minChars: 2 ,<br />
                  select: function(event, ui) {<br />
                                $(&#8220;#id_tags&#8221;).tagEditorAddTag(ui.item.value);<br />
                                $(&#8220;#id_tags&#8221;).val(&#8221;);<br />
                                return false;<br />
                            }<br />
                }<br />
            );   </p>
<p>I use jQuery 1.4.2 and UI 1.8.2.</p>
<p>Thanks a lot,</p>
<p>Tomas</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Disabling &#8220;Missing XML comment for publicly visible type or member XX&#8221; by Real buy adipex</title>
		<link>http://blog.crazybeavers.se/index.php/archive/disabling-missing-xml-comment-for-publicly-visible-type-or-member-xx/comment-page-1/#comment-559</link>
		<dc:creator>Real buy adipex</dc:creator>
		<pubDate>Thu, 03 Jun 2010 09:14:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crazybeavers.se/?p=55#comment-559</guid>
		<description>Real, http://wiki.oracle.com/account/buyadipexonline buy adipex,  5514,</description>
		<content:encoded><![CDATA[<p>Real, <a href="http://wiki.oracle.com/account/buyadipexonline" rel="nofollow">http://wiki.oracle.com/account/buyadipexonline</a> buy adipex,  5514,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery Tag Editor 1.4 by jQuery Tag Editor 中文注释 - 美拓blog</title>
		<link>http://blog.crazybeavers.se/index.php/archive/jquery-tag-editor-1-4/comment-page-1/#comment-558</link>
		<dc:creator>jQuery Tag Editor 中文注释 - 美拓blog</dc:creator>
		<pubDate>Sun, 30 May 2010 05:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crazybeavers.se/?p=171#comment-558</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on New version of jQuery Tag Editor by Marc</title>
		<link>http://blog.crazybeavers.se/index.php/archive/new-version-of-jquery-tag-editor/comment-page-1/#comment-555</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Fri, 21 May 2010 22:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crazybeavers.se/?p=108#comment-555</guid>
		<description>In the case where you have a lot of tags, say 20 tags, they seem to extend across the screen horizontally, as they are displayed &quot;inline&quot;.  Is there a simple way to get them to drop down vertically? Perhaps even a blank LI with display set to &quot;block&quot; that is injected every X items?</description>
		<content:encoded><![CDATA[<p>In the case where you have a lot of tags, say 20 tags, they seem to extend across the screen horizontally, as they are displayed &#8220;inline&#8221;.  Is there a simple way to get them to drop down vertically? Perhaps even a blank LI with display set to &#8220;block&#8221; that is injected every X items?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on New version of jQuery Tag Editor by Giovanni</title>
		<link>http://blog.crazybeavers.se/index.php/archive/new-version-of-jquery-tag-editor/comment-page-1/#comment-535</link>
		<dc:creator>Giovanni</dc:creator>
		<pubDate>Thu, 25 Mar 2010 09:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crazybeavers.se/?p=108#comment-535</guid>
		<description>Hi Karl,
I&#039;ve found useful a simple change to make the plugin work also within ajax forms. In this case you&#039;ll probably find form tags with filled &quot;onsubmit&quot; attribute, this will prevent the form.submit() event triggering.

This was the code before:
var form = $(this).parents(&quot;form&quot;);
form.submit(function() {
    parse();
    hiddenText.val(itemBase.join(options.separator));
    hiddenText.attr(&quot;id&quot;, textBase.attr(&quot;id&quot;));
    hiddenText.attr(&quot;name&quot;, textBase.attr(&quot;name&quot;));
    textBase.attr(&quot;id&quot;, textBase.attr(&quot;id&quot;) + &#039;_old&#039;);
    textBase.attr(&quot;name&quot;, textBase.attr(&quot;name&quot;) + &#039;_old&#039;);
});

and now:
var form = $(this).parents(&quot;form&quot;);
if (&quot;&quot; == form.attr(&quot;onsubmit&quot;)) {
    form.submit(onSubmit);
}
else {
    form.children(&quot;[type=submit]&quot;).click(onSubmit);
}

function onSubmit() {
    parse();
    hiddenText.val(itemBase.join(options.separator));
    hiddenText.attr(&quot;id&quot;, textBase.attr(&quot;id&quot;));
    hiddenText.attr(&quot;name&quot;, textBase.attr(&quot;name&quot;));
    textBase.attr(&quot;id&quot;, textBase.attr(&quot;id&quot;) + &#039;_old&#039;);
    textBase.attr(&quot;name&quot;, textBase.attr(&quot;name&quot;) + &#039;_old&#039;);
}

Bye</description>
		<content:encoded><![CDATA[<p>Hi Karl,<br />
I&#8217;ve found useful a simple change to make the plugin work also within ajax forms. In this case you&#8217;ll probably find form tags with filled &#8220;onsubmit&#8221; attribute, this will prevent the form.submit() event triggering.</p>
<p>This was the code before:<br />
var form = $(this).parents(&#8220;form&#8221;);<br />
form.submit(function() {<br />
    parse();<br />
    hiddenText.val(itemBase.join(options.separator));<br />
    hiddenText.attr(&#8220;id&#8221;, textBase.attr(&#8220;id&#8221;));<br />
    hiddenText.attr(&#8220;name&#8221;, textBase.attr(&#8220;name&#8221;));<br />
    textBase.attr(&#8220;id&#8221;, textBase.attr(&#8220;id&#8221;) + &#8216;_old&#8217;);<br />
    textBase.attr(&#8220;name&#8221;, textBase.attr(&#8220;name&#8221;) + &#8216;_old&#8217;);<br />
});</p>
<p>and now:<br />
var form = $(this).parents(&#8220;form&#8221;);<br />
if (&#8220;&#8221; == form.attr(&#8220;onsubmit&#8221;)) {<br />
    form.submit(onSubmit);<br />
}<br />
else {<br />
    form.children(&#8220;[type=submit]&#8220;).click(onSubmit);<br />
}</p>
<p>function onSubmit() {<br />
    parse();<br />
    hiddenText.val(itemBase.join(options.separator));<br />
    hiddenText.attr(&#8220;id&#8221;, textBase.attr(&#8220;id&#8221;));<br />
    hiddenText.attr(&#8220;name&#8221;, textBase.attr(&#8220;name&#8221;));<br />
    textBase.attr(&#8220;id&#8221;, textBase.attr(&#8220;id&#8221;) + &#8216;_old&#8217;);<br />
    textBase.attr(&#8220;name&#8221;, textBase.attr(&#8220;name&#8221;) + &#8216;_old&#8217;);<br />
}</p>
<p>Bye</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on New version of jQuery Tag Editor by Giovanni</title>
		<link>http://blog.crazybeavers.se/index.php/archive/new-version-of-jquery-tag-editor/comment-page-1/#comment-534</link>
		<dc:creator>Giovanni</dc:creator>
		<pubDate>Mon, 15 Mar 2010 11:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crazybeavers.se/?p=108#comment-534</guid>
		<description>Really a great plugin!
Simple and effective!

Thanks</description>
		<content:encoded><![CDATA[<p>Really a great plugin!<br />
Simple and effective!</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
