<?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: Focus On Form Element</title>
	<atom:link href="http://www.valibuk.net/2007/08/focus-on-form-element/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.valibuk.net/2007/08/focus-on-form-element/</link>
	<description>A place for opinions and notes of a valibuk.</description>
	<pubDate>Fri, 18 May 2012 07:02:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Jeffrey Haas</title>
		<link>http://www.valibuk.net/2007/08/focus-on-form-element/#comment-25000</link>
		<dc:creator>Jeffrey Haas</dc:creator>
		<pubDate>Wed, 17 Oct 2007 23:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.valibuk.net/?p=57#comment-25000</guid>
		<description>Oops, the code got removed when I posted.  Here it is again:

&#60;%= javascript_include_tag 'prototype' %&#62;</description>
		<content:encoded><![CDATA[<p>Oops, the code got removed when I posted.  Here it is again:</p>
<p>&lt;%= javascript_include_tag &#8216;prototype&#8217; %&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey Haas</title>
		<link>http://www.valibuk.net/2007/08/focus-on-form-element/#comment-24999</link>
		<dc:creator>Jeffrey Haas</dc:creator>
		<pubDate>Wed, 17 Oct 2007 23:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.valibuk.net/?p=57#comment-24999</guid>
		<description>Thanks, this method worked for me, but not until I included the 'prototype' library in the &#60;head&#62; section of the layout for my application.

I needed to add:
  </description>
		<content:encoded><![CDATA[<p>Thanks, this method worked for me, but not until I included the &#8216;prototype&#8217; library in the &lt;head&gt; section of the layout for my application.</p>
<p>I needed to add:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Seidel</title>
		<link>http://www.valibuk.net/2007/08/focus-on-form-element/#comment-19540</link>
		<dc:creator>Jon Seidel</dc:creator>
		<pubDate>Sun, 23 Sep 2007 17:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.valibuk.net/?p=57#comment-19540</guid>
		<description>Actually, I had to code the set_focus method like this:

      javascript_tag("$(\"#{id}\").focus()")

Notice the backslashes before the double-quotes (not single-quotes) around the #{id}.

Otherwise, the formatting of the quotes fails in the generated code and it doesn't work.</description>
		<content:encoded><![CDATA[<p>Actually, I had to code the set_focus method like this:</p>
<p>      javascript_tag(&#8221;$(\&#8221;#{id}\&#8221;).focus()&#8221;)</p>
<p>Notice the backslashes before the double-quotes (not single-quotes) around the #{id}.</p>
<p>Otherwise, the formatting of the quotes fails in the generated code and it doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

