Results 1 to 2 of 2

Thread: Submit Once! Form validation

  1. #1
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default Submit Once! Form validation

    Not precisely a bug but, I think it belongs here. The script in question is:
    Submit Once! Form validation. There is nothing technically wrong with that page, the trouble arises on its Developer's View page:

    Home > Form Effects > Submit Once! Form validation > Developer's View

    That code does not work, it is missing two things, at the end of the script it needs this:
    Code:
    }
    }
    return false
    }
    </script>
    instead of the current:
    Code:
    }
    }
    }
    </script>
    and in the markup it should read:
    HTML Code:
    <form onSubmit="return submitonce(this)">
    instead of this:
    HTML Code:
    <form onSubmit="submitonce(this)">

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Great catch, thanks! Now I remember why I had modified the script that way- it was straight from the demo, which I didn't want the form to actually submit. But the developer's view shoud show a working script, I agree.

Bookmarks

Posting Permissions

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