#22 ✓ resolved
John-David Dalton

Form#serializeElements options.submit doesn't work with multiple buttons with same name

Reported by John-David Dalton | April 16th, 2008 @ 09:46 PM | in 1.6.0.3

As mentioned in a couple of tickets the Form.serializeElements options.submit does not work on elements with the same name. We should probably check based on id first then fallback on name (my have some IE issues).

As Anthoney Hildoer pointed out there may be some solutions when the element is clicked but since Form.serialize may be called anytime and not just in an event handler, trying to figure out which element is clicked via event inspection may not be practical (event.explicitOriginalTarget for Mozilla browsers or document.activeElement for IE).

for some more background on this please read the related ticket:

http://dev.rubyonrails.org/ticke...

We should also be checking inputs with a type of "image" because those act like submit buttons.

W3C reading:

http://dev.rubyonrails.org/ticke...

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Pages