Re: Adding a new method 'getSubmitButton' to Form

12 views
Skip to first unread message

Azhaguselvan SP

unread,
Sep 27, 2012, 2:21:00 PM9/27/12
to prototype-s...@googlegroups.com
Oops posted it wrongly here, instead of posting in core list.

On Thursday, September 27, 2012 11:35:01 PM UTC+5:30, Azhaguselvan SP wrote:
Hi guys,

I am planning to add a new method to Form Element named 'getSubmitButton' to easily access the submit button of a form. I am ready to provide the patch and tests for it.
Will that be useful?

--
Azhagu Selvan SP

Victor

unread,
Sep 28, 2012, 3:27:55 AM9/28/12
to prototype-s...@googlegroups.com, selv...@gmail.com
I am planning to add a new method to Form Element named 'getSubmitButton' to easily access the submit button of a form. I am ready to provide the patch and tests for it.
Will that be useful?

Which submit button? Form may have many submit buttons simultaneously, either <input type="submit" /> or <button type="submit">. Also form may not have submit buttons at all, then pressing Enter in input field will submit form, and clicking on <input type="image" /> will work as submit button.
Reply all
Reply to author
Forward
0 new messages