Search and Top Navigation
#4544 closed bug (notabug)
Opened May 20, 2009 06:23PM UTC
Closed May 22, 2009 11:19AM UTC
Last modified October 11, 2012 09:15PM UTC
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.
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. :(