small medium large xlarge

Generic-user-small
20 Jun 2008, 07:10
Troy Will (2 posts)

My knowledge of html forms is limited so I can’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.

I verified that a form with one input element only does not need a submit button in my GNU/Linux Firefox browser. But the calculator example has 2 elements, and I needed to add a submit button with the Rails submit_tag method?

Am I overlooking something? Thanks.

Dave_gnome_head_isolated_pragsmall
20 Jun 2008, 14:07
Dave Thomas (390 posts)

Works for me without…

Dave

Generic-user-small
21 Jun 2008, 00:53
Troy Will (2 posts)

Thanks for the reply. I’m running Firefox 2.0.0.11 on Linux. I suspect that form submission without a submit button varies from browser to browser.

I found this on the www.w3.org website: “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.” I am guessing that some browsers will submit a multi-field form with an Enter, and some will not.

You must be logged in to comment