#4544 closed bug (notabug)
Modal dialog prevents form submission
Reported by: | BigBadaboom | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.dialog | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I am attempting to use a modal dialog to confirm form submission. However if I any attempt to submit the form in the dialog's 'confirm' button event handler fails (nothing happens).
For example, see the attached test case.
I would expect this test case to work, however clicking confirm does nothing, and no errors are raised. Any code inserted into the button handler following the 'submit()' call is executed as expected, so it appears the submit() call is actually called called, it just exits quietly without doing anything.
Other things I've attempted such as using $("#testform").get(0).submit() to call the form's submit method directly also fail.
Attachments (1)
Change History (4)
Changed 14 years ago by
Attachment: | uibug.html added |
---|
Sorry, please close this bug. It has nothing to do with jQuery UI. The problem was due to the form field (button) named 'submit' overriding the form's submit() method.
I was in a rush to file the bug before going to bed and I should have done more testing. :(