Generic-user-small 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_8_trans_small Dave Thomas Administrator 61 posts

Works for me without…

Dave

 
Generic-user-small 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.

3 posts, 2 voices