PDA

View Full Version : Submit Once! Form validation



jscheuer1
03-28-2005, 05:39 AM
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 (http://www.dynamicdrive.com/dynamicindex11/submitonce_dev.htm)

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

ddadmin
04-05-2005, 07:27 PM
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.