<?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 on: Default input values using labels and Prototype</title>
	<atom:link href="http://lassebunk.dk/2009/07/15/default-input-values-using-labels-and-prototype/feed/" rel="self" type="application/rss+xml" />
	<link>http://lassebunk.dk/2009/07/15/default-input-values-using-labels-and-prototype/</link>
	<description>Ruby on Rails, programming, and SEO</description>
	<lastBuildDate>Sat, 04 Feb 2012 20:56:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: chris</title>
		<link>http://lassebunk.dk/2009/07/15/default-input-values-using-labels-and-prototype/#comment-36337</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Fri, 16 Dec 2011 03:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://lassebunk.dk/?p=63#comment-36337</guid>
		<description>hey have you ever tried this with autocomplete turned on for the input box?</description>
		<content:encoded><![CDATA[<p>hey have you ever tried this with autocomplete turned on for the input box?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deandra</title>
		<link>http://lassebunk.dk/2009/07/15/default-input-values-using-labels-and-prototype/#comment-23304</link>
		<dc:creator>Deandra</dc:creator>
		<pubDate>Wed, 06 Jul 2011 13:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://lassebunk.dk/?p=63#comment-23304</guid>
		<description>Wonderful epxalantoin of facts available here.</description>
		<content:encoded><![CDATA[<p>Wonderful epxalantoin of facts available here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek</title>
		<link>http://lassebunk.dk/2009/07/15/default-input-values-using-labels-and-prototype/#comment-8265</link>
		<dc:creator>Marek</dc:creator>
		<pubDate>Tue, 11 Jan 2011 10:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://lassebunk.dk/?p=63#comment-8265</guid>
		<description>There is also problem with submiting form via ajax. Form send values from labels instead of empty fields.</description>
		<content:encoded><![CDATA[<p>There is also problem with submiting form via ajax. Form send values from labels instead of empty fields.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek</title>
		<link>http://lassebunk.dk/2009/07/15/default-input-values-using-labels-and-prototype/#comment-8263</link>
		<dc:creator>Marek</dc:creator>
		<pubDate>Tue, 11 Jan 2011 09:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://lassebunk.dk/?p=63#comment-8263</guid>
		<description>Nice script :) Thanks.

Unfortunately there is weird think with couple password&#039;s inputs (changing password form).
On focus some inputs disappearing and some are inactive. Perhaps because of type.</description>
		<content:encoded><![CDATA[<p>Nice script <img src='http://lassebunk.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks.</p>
<p>Unfortunately there is weird think with couple password&#8217;s inputs (changing password form).<br />
On focus some inputs disappearing and some are inactive. Perhaps because of type.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J. Pablo Fernández</title>
		<link>http://lassebunk.dk/2009/07/15/default-input-values-using-labels-and-prototype/#comment-2310</link>
		<dc:creator>J. Pablo Fernández</dc:creator>
		<pubDate>Sun, 12 Sep 2010 16:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://lassebunk.dk/?p=63#comment-2310</guid>
		<description>Awesome solution; I really like it. My labels tend to end in &quot;:&quot; so I&#039;ve added this to remove it:

        if (defaultValue.endsWith(&#039;:&#039;)) {
            defaultValue = defaultValue.substring(0, defaultValue.length - 1);
        }</description>
		<content:encoded><![CDATA[<p>Awesome solution; I really like it. My labels tend to end in &#8220;:&#8221; so I&#8217;ve added this to remove it:</p>
<p>        if (defaultValue.endsWith(&#8216;:&#8217;)) {<br />
            defaultValue = defaultValue.substring(0, defaultValue.length &#8211; 1);<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay K</title>
		<link>http://lassebunk.dk/2009/07/15/default-input-values-using-labels-and-prototype/#comment-328</link>
		<dc:creator>Jay K</dc:creator>
		<pubDate>Tue, 30 Mar 2010 16:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://lassebunk.dk/?p=63#comment-328</guid>
		<description>I&#039;ve made a few changes to this to work around the problem where IE doesn&#039;t like to change the &quot;type&quot; attribute of an input element.  I create a new text field and toggle back and forth instead.  It also takes care of the problem with form.observe mentioned above (I think).  New code at http://gist.github.com/349231/.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve made a few changes to this to work around the problem where IE doesn&#8217;t like to change the &#8220;type&#8221; attribute of an input element.  I create a new text field and toggle back and forth instead.  It also takes care of the problem with form.observe mentioned above (I think).  New code at <a href="http://gist.github.com/349231/" rel="nofollow">http://gist.github.com/349231/</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://lassebunk.dk/2009/07/15/default-input-values-using-labels-and-prototype/#comment-101</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 05 Nov 2009 12:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://lassebunk.dk/?p=63#comment-101</guid>
		<description>Hi Lasse

First, thanks for the tidy little script :)

I did run into some problems with IE (nothing unusual there :) - the script was throwing an error in IE versions 6 through to 8 (I&#039;m using IETester in a Parallels Windows XP install on a Mac, so the issue could lie there, but just in case anyone else runs into the same thing, read on).

I&#039;m no JS expert, but I had a play and found that if I changed line 46 from this:
    form.observe(&quot;submit&quot;, function(event) {

to this:
    Event.observe(dv_form, &#039;submit&#039;, function(event) {

it seemed to fix the issue. I have no idea why this would be so - since the same syntax &quot;(element).observe...&quot; is used without a problem elsewhere in the script. Maybe someone else could shed some light on this?

Anyway, thanks again,

dave</description>
		<content:encoded><![CDATA[<p>Hi Lasse</p>
<p>First, thanks for the tidy little script <img src='http://lassebunk.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I did run into some problems with IE (nothing unusual there <img src='http://lassebunk.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211; the script was throwing an error in IE versions 6 through to 8 (I&#8217;m using IETester in a Parallels Windows XP install on a Mac, so the issue could lie there, but just in case anyone else runs into the same thing, read on).</p>
<p>I&#8217;m no JS expert, but I had a play and found that if I changed line 46 from this:<br />
    form.observe(&#8220;submit&#8221;, function(event) {</p>
<p>to this:<br />
    Event.observe(dv_form, &#8216;submit&#8217;, function(event) {</p>
<p>it seemed to fix the issue. I have no idea why this would be so &#8211; since the same syntax &#8220;(element).observe&#8230;&#8221; is used without a problem elsewhere in the script. Maybe someone else could shed some light on this?</p>
<p>Anyway, thanks again,</p>
<p>dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lasse Bunk</title>
		<link>http://lassebunk.dk/2009/07/15/default-input-values-using-labels-and-prototype/#comment-4</link>
		<dc:creator>Lasse Bunk</dc:creator>
		<pubDate>Sat, 18 Jul 2009 17:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://lassebunk.dk/?p=63#comment-4</guid>
		<description>Hey Rufor,

Thanks a lot :-) Gotta get used to Digg - I&#039;ve marked it now. Do people usually make the first Digg themselves?

Regards,
Lasse</description>
		<content:encoded><![CDATA[<p>Hey Rufor,</p>
<p>Thanks a lot <img src='http://lassebunk.dk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Gotta get used to Digg &#8211; I&#8217;ve marked it now. Do people usually make the first Digg themselves?</p>
<p>Regards,<br />
Lasse</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rufor</title>
		<link>http://lassebunk.dk/2009/07/15/default-input-values-using-labels-and-prototype/#comment-3</link>
		<dc:creator>Rufor</dc:creator>
		<pubDate>Sat, 18 Jul 2009 17:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://lassebunk.dk/?p=63#comment-3</guid>
		<description>Hello,
Super post, Need to mark it on Digg
Thanks</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Super post, Need to mark it on Digg<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

