Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
with multiple submit buttons, detect which one was pressed
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f60d60d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens when a form is submitted without clicking the submit button?
f60d60d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then the first submit button should be serialized. But you're right: if another button was pressed before, the stored value is never cleared and it would appear that this button is forever pressed. Fixed in 386d364
I'm working on some automated tests through Selenium. If anyone has a better suggestion for a tool that would run tests against a mini web-app in headless mode, please speak.
f60d60d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be of interest: http://ajaxian.com/archives/synthetic-event-library-syn-aims-to-make-testing-easier