Results 1 to 3 of 3

Thread: SimpleFormController Double Submit

  1. #1
    Join Date
    Oct 2004
    Location
    Dallas, TX
    Posts
    20

    Default SimpleFormController Double Submit

    Hello all!

    I've got a form with a set of 6 textboxes and 1 checkbox that works likes a champ except...

    When submitting the form to the SimpleFormController that it belongs to the onSubmit is being executed twice. In this case, it's making a double entry into the database. I'm positive that I'm only clicking the submit button once yet can watch the onSubmit run twice.

    Anyone have any idea, hints, or suggestions as to what is going on?

    Thanks!
    Chris

  2. #2

    Default

    Do you have any Javascript handlers bound to the form elements?

    Sometimes calling form.submit() inside an onSubmit() handler will cause such double submits.

  3. #3
    Join Date
    Oct 2004
    Location
    Dallas, TX
    Posts
    20

    Default

    Quote Originally Posted by plethora
    Do you have any Javascript handlers bound to the form elements?

    Sometimes calling form.submit() inside an onSubmit() handler will cause such double submits.
    Actually I was calling a JavaScript submit on a submit button! D'oh! Thank you for the most excellent suggestion!

    Chris

Similar Threads

  1. Solution to double form submit...
    By Colin Yates in forum Web Flow
    Replies: 10
    Last Post: Mar 26th, 2010, 10:53 AM
  2. Replies: 5
    Last Post: Mar 19th, 2006, 09:24 AM
  3. SimpleFormController not do onSubmit
    By heleno_alves in forum Web
    Replies: 2
    Last Post: Oct 18th, 2005, 07:22 AM
  4. Support for double submit handling?
    By deanholdren in forum Web Flow
    Replies: 1
    Last Post: May 25th, 2005, 09:26 PM
  5. Replies: 1
    Last Post: May 16th, 2005, 06:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •