<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Does calculator example (pg.516) need a submit_tag method?' | Pragmatic Forums</title>
    <link>https://forums.pragprog.com/forums/66/topics/568</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Does calculator example (pg.516) need a submit_tag method? posted by Troy Will @ Sat, 21 Jun 2008 00:53:12 -0000</title>
      <description>&lt;p&gt;Thanks for the reply. I&amp;#8217;m running Firefox 2.0.0.11 on Linux. I suspect that form submission without a submit button varies from browser to browser.&lt;/p&gt;


	&lt;p&gt;I found this on the &lt;a href="http://www.w3.org"&gt;www.w3.org&lt;/a&gt; website: &amp;#8220;When there is only one single-line text input field in a form, the user agent should accept Enter in that field as a request to submit the form.&amp;#8221; I am guessing that some browsers will submit a multi-field form with an Enter, and some will not.&lt;/p&gt;</description>
      <pubDate>Sat, 21 Jun 2008 00:53:12 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:568:3286</guid>
      <author>Troy Will</author>
      <link>https://forums.pragprog.com/forums/66/topics/568</link>
    </item>
    <item>
      <title>Does calculator example (pg.516) need a submit_tag method? posted by Dave Thomas @ Fri, 20 Jun 2008 14:07:15 -0000</title>
      <description>&lt;p&gt;Works for me without&amp;#8230;&lt;/p&gt;


	&lt;p&gt;Dave&lt;/p&gt;</description>
      <pubDate>Fri, 20 Jun 2008 14:07:15 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:568:3273</guid>
      <author>Dave Thomas</author>
      <link>https://forums.pragprog.com/forums/66/topics/568</link>
    </item>
    <item>
      <title>Does calculator example (pg.516) need a submit_tag method? posted by Troy Will @ Fri, 20 Jun 2008 07:10:58 -0000</title>
      <description>&lt;p&gt;My knowledge of html forms is limited so I can&amp;#8217;t speak with authority, but I think that the calculator form in  calculate.rhtml.erb needs a submit control or the form never gets submitted.&lt;/p&gt;


	&lt;p&gt;I verified that a form with one input element only does not need a submit button in my &lt;span class="caps"&gt;GNU&lt;/span&gt;/Linux Firefox browser. But the calculator example has 2 elements, and   I needed to add a submit button with the Rails submit_tag method?&lt;/p&gt;


	&lt;p&gt;Am I overlooking something? Thanks.&lt;/p&gt;</description>
      <pubDate>Fri, 20 Jun 2008 07:10:58 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:568:3269</guid>
      <author>Troy Will</author>
      <link>https://forums.pragprog.com/forums/66/topics/568</link>
    </item>
  </channel>
</rss>
