<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Building Browsergames - Latest Comments in Making Your Forms Auto-Focus (Ruby on Rails)</title><link>http://bbgames.disqus.com/</link><description></description><atom:link href="https://bbgames.disqus.com/making_your_forms_auto_focus_ruby_on_rails/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 12 Feb 2009 22:14:52 -0000</lastBuildDate><item><title>Re: Making Your Forms Auto-Focus (Ruby on Rails)</title><link>http://buildingbrowsergames.com/2008/09/03/making-your-forms-auto-focus-ruby-on-rails/#comment-6230847</link><description>&lt;p&gt;It would be nice if the FormHelper would allow passing an option to text_field to automagically add this JS to the page.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nicolas</dc:creator><pubDate>Thu, 12 Feb 2009 22:14:52 -0000</pubDate></item><item><title>Re: Making Your Forms Auto-Focus (Ruby on Rails)</title><link>http://buildingbrowsergames.com/2008/09/03/making-your-forms-auto-focus-ruby-on-rails/#comment-5457625</link><description>&lt;p&gt;It worked for me. Thank You&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nisha</dc:creator><pubDate>Thu, 22 Jan 2009 01:49:02 -0000</pubDate></item><item><title>Re: Making Your Forms Auto-Focus (Ruby on Rails)</title><link>http://buildingbrowsergames.com/2008/09/03/making-your-forms-auto-focus-ruby-on-rails/#comment-3089175</link><description>&lt;p&gt;People that need also to position the cursor should take a look at &lt;a href="http://developer.mozilla.org/en/XUL/Method/setSelectionRange" rel="nofollow noopener" target="_blank" title="http://developer.mozilla.org/en/XUL/Method/setSelectionRange"&gt;http://developer.mozilla.or...&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/ms536401(VS.85).aspx" rel="nofollow noopener" target="_blank" title="http://msdn.microsoft.com/en-us/library/ms536401(VS.85).aspx"&gt;http://msdn.microsoft.com/e...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marko Anastasov</dc:creator><pubDate>Wed, 24 Sep 2008 19:33:58 -0000</pubDate></item><item><title>Re: Making Your Forms Auto-Focus (Ruby on Rails)</title><link>http://buildingbrowsergames.com/2008/09/03/making-your-forms-auto-focus-ruby-on-rails/#comment-3089174</link><description>&lt;p&gt;in jQuery you can also write it like:&lt;br&gt;&lt;/p&gt;&lt;pre&gt;$(window).ready(function(){&lt;br&gt;  $("input:nth-child(0)").focus()&lt;br&gt;})&lt;br&gt;&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;with Prototype you can do:&lt;br&gt;&lt;/p&gt;&lt;pre&gt;&lt;br&gt;document.observe("window:loaded", function() {&lt;br&gt;  // initially hide all containers for tab content&lt;br&gt;  $('user_login').focus()&lt;br&gt;});&lt;br&gt;&lt;br&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jake</dc:creator><pubDate>Wed, 03 Sep 2008 13:41:29 -0000</pubDate></item></channel></rss>