<?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"
	>
<channel>
	<title>Comments on: labelify: a jQuery plugin to add labels to your textboxes</title>
	<atom:link href="http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery</link>
	<description>scratched tallies on the prison wall</description>
	<pubDate>Mon, 01 Dec 2008 22:55:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Garrett LeSage</title>
		<link>http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery#comment-121340</link>
		<dc:creator>Garrett LeSage</dc:creator>
		<pubDate>Thu, 26 Jun 2008 15:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1519#comment-121340</guid>
		<description>Hey Stuart!

I actually write my own jQuery plugin to do the exact same thing, and used almost exactly the same techniques as you used.  It's shockingly similar.  After seeing yours via Planet GNOME, I decided to drop mine and switch to yours.  (It works exactly the same a drop-in replacement, once I passed the option to use a different classname.)

My own git branch is at github now.  I took the liberty to adapt your HTML page to text and include it as a README file (with a link at the top of the file)... and I also fixed a couple of minor semicolon bugs, too.  If/when I find more bugs, I'll commit them as well.  (It's better to work on a unified codebase than each having our own.)

My git branch is now located at:
http://github.com/garrett/jquery.labelify

Thanks for your version the plugin!</description>
		<content:encoded><![CDATA[<p>Hey Stuart!</p>
<p>I actually write my own jQuery plugin to do the exact same thing, and used almost exactly the same techniques as you used.  It&#8217;s shockingly similar.  After seeing yours via Planet GNOME, I decided to drop mine and switch to yours.  (It works exactly the same a drop-in replacement, once I passed the option to use a different classname.)</p>
<p>My own git branch is at github now.  I took the liberty to adapt your HTML page to text and include it as a README file (with a link at the top of the file)&#8230; and I also fixed a couple of minor semicolon bugs, too.  If/when I find more bugs, I&#8217;ll commit them as well.  (It&#8217;s better to work on a unified codebase than each having our own.)</p>
<p>My git branch is now located at:<br />
<a href="http://github.com/garrett/jquery.labelify" rel="nofollow">http://github.com/garrett/jquery.labelify</a></p>
<p>Thanks for your version the plugin!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krijn Hoetmer</title>
		<link>http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery#comment-121337</link>
		<dc:creator>Krijn Hoetmer</dc:creator>
		<pubDate>Thu, 26 Jun 2008 08:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1519#comment-121337</guid>
		<description>Ah, okay. I don't think submitting a blank value is a problem, but you could throw in an extra setting, which holds the submitted value when nothing is selected ("" by default). I see you in September, though! :)</description>
		<content:encoded><![CDATA[<p>Ah, okay. I don&#8217;t think submitting a blank value is a problem, but you could throw in an extra setting, which holds the submitted value when nothing is selected (&#8221;" by default). I see you in September, though! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery#comment-121336</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Thu, 26 Jun 2008 08:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1519#comment-121336</guid>
		<description>Krijn: the problem is: what happens if someone submits the form without ever touching the select? You haven't attached a value to the new option, so it'll submit as blank...but that might not be what you want the default to be, and there'll be no way of overriding that. I see your theory, though!</description>
		<content:encoded><![CDATA[<p>Krijn: the problem is: what happens if someone submits the form without ever touching the select? You haven&#8217;t attached a value to the new option, so it&#8217;ll submit as blank&#8230;but that might not be what you want the default to be, and there&#8217;ll be no way of overriding that. I see your theory, though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krijn Hoetmer</title>
		<link>http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery#comment-121335</link>
		<dc:creator>Krijn Hoetmer</dc:creator>
		<pubDate>Thu, 26 Jun 2008 08:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1519#comment-121335</guid>
		<description>Wouldn't you only need one label value? The one that is shown in the dropdown when 'nothing is selected' (&#60;option class=labelledClass&#62;My label&#60;/option&#62;), that's removed on focus and put back when no option is selected? I'm probably missing something here :)

A quick try: http://krijnhoetmer.nl/zooi/js/labelify-select - only some bad UI in IE, but that's to be expected..</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t you only need one label value? The one that is shown in the dropdown when &#8216;nothing is selected&#8217; (&lt;option class=labelledClass&gt;My label&lt;/option&gt;), that&#8217;s removed on focus and put back when no option is selected? I&#8217;m probably missing something here :)</p>
<p>A quick try: <a href="http://krijnhoetmer.nl/zooi/js/labelify-select" rel="nofollow">http://krijnhoetmer.nl/zooi/js/labelify-select</a> - only some bad UI in IE, but that&#8217;s to be expected..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery#comment-121333</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Thu, 26 Jun 2008 07:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1519#comment-121333</guid>
		<description>Krijn: labelifying select elements is easy from a code point of view but not from a UI point of view, because a selected entry in a dropdown has _two_ values: the text that's shown in the dropdown and the value that's sent to the server when the form is submitted. It's certainly possible to imagine ways of getting two values from the title attribute or label or both, but the code you wrote would be annoying if it were generic enough to be used by everyone who might need it, so the library wouldn't be very good.</description>
		<content:encoded><![CDATA[<p>Krijn: labelifying select elements is easy from a code point of view but not from a UI point of view, because a selected entry in a dropdown has _two_ values: the text that&#8217;s shown in the dropdown and the value that&#8217;s sent to the server when the form is submitted. It&#8217;s certainly possible to imagine ways of getting two values from the title attribute or label or both, but the code you wrote would be annoying if it were generic enough to be used by everyone who might need it, so the library wouldn&#8217;t be very good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krijn Hoetmer</title>
		<link>http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery#comment-121332</link>
		<dc:creator>Krijn Hoetmer</dc:creator>
		<pubDate>Thu, 26 Jun 2008 07:47:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1519#comment-121332</guid>
		<description>Nice! Just what I needed. Also very smart that it clears the label values on form submit. That should be reason number 4 in your 'why use it' list :)

And how about labelifying select elements like this as well? That's a huge pita to do right now. Would it be easy to insert a temporary option, just like you do with a temporary value?

Thanks!</description>
		<content:encoded><![CDATA[<p>Nice! Just what I needed. Also very smart that it clears the label values on form submit. That should be reason number 4 in your &#8216;why use it&#8217; list :)</p>
<p>And how about labelifying select elements like this as well? That&#8217;s a huge pita to do right now. Would it be easy to insert a temporary option, just like you do with a temporary value?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MindstormsKid</title>
		<link>http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery#comment-121327</link>
		<dc:creator>MindstormsKid</dc:creator>
		<pubDate>Wed, 25 Jun 2008 18:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1519#comment-121327</guid>
		<description>Thanks, it works now!</description>
		<content:encoded><![CDATA[<p>Thanks, it works now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery#comment-121326</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Wed, 25 Jun 2008 18:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1519#comment-121326</guid>
		<description>MindstormsKid: yep. You're using $("input[text]") as a selector, which looks for input elements with an attribute named "text". What you want is $(":text") or something similar -- see http://docs.jquery.com/Selectors for details.

(This was wrong in my original writeup, and I've since changed it; thanks for the pointer!)</description>
		<content:encoded><![CDATA[<p>MindstormsKid: yep. You&#8217;re using $(&#8221;input[text]&#8220;) as a selector, which looks for input elements with an attribute named &#8220;text&#8221;. What you want is $(&#8221;:text&#8221;) or something similar &#8212; see <a href="http://docs.jquery.com/Selectors" rel="nofollow">http://docs.jquery.com/Selectors</a> for details.</p>
<p>(This was wrong in my original writeup, and I&#8217;ve since changed it; thanks for the pointer!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MindstormsKid</title>
		<link>http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery#comment-121325</link>
		<dc:creator>MindstormsKid</dc:creator>
		<pubDate>Wed, 25 Jun 2008 17:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1519#comment-121325</guid>
		<description>Hi, I tried this on http://teamterastorm.googlepages.com/contactus_form_test.html , but it won't work. Do you know why?</description>
		<content:encoded><![CDATA[<p>Hi, I tried this on <a href="http://teamterastorm.googlepages.com/contactus_form_test.html" rel="nofollow">http://teamterastorm.googlepages.com/contactus_form_test.html</a> , but it won&#8217;t work. Do you know why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olly</title>
		<link>http://www.kryogenix.org/days/2008/06/25/labelify-add-labels-to-textboxes-with-jquery#comment-121322</link>
		<dc:creator>Olly</dc:creator>
		<pubDate>Wed, 25 Jun 2008 16:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1519#comment-121322</guid>
		<description>Thanks Stuart, this looks like a handy plugin.

I tried to implement something similar myself but ran into all sorts of issues with the various ways the browsers do their auto-complete thing.</description>
		<content:encoded><![CDATA[<p>Thanks Stuart, this looks like a handy plugin.</p>
<p>I tried to implement something similar myself but ran into all sorts of issues with the various ways the browsers do their auto-complete thing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
