Onsubmit
in this ASP page got a form, a submit button and also a link which also perform same as the submit button. Everytime when the submit button is clicked, a java script will be run to varified the value input by user before submitting the form. Code:
View Replies
I have an email javascript validation function in the code below that I'm pretty sure will work. The problem is how do i call the function using the onSubmit method without affecting the rest of my validation msgs? Code:
View Replies
View Related
Is there a way to perform multiple actions on a SUBMIT with ASP?
Example, I have a submit button that when it is pressed, it performs an action where information is stored in the database using a stored procedure. Can I also write out a flat file of the information saved separately or something parallel without hendering the original submit? I would want to do these two requests at the same time on the submit. Is it possible? Can someone give me some guidance on this?
View Replies
View Related
I am using onSubmit to validate the form entries before an "insert" sql operation, when javascript function returns True, I get a sql error because of database "unique" violation, but the record gets added anyway. It look like the form is being submitted twice, the second time it encounters the error because the record was added the first time.
View Replies
View Related
I recently solved a problem where I had to have a Form Submit cancel if certain forms were not filled out. I used a javascript function in the OnSubmit option.
<form name = "myform" method="POST" action="goto.asp" onSubmit = "return test()">
test() is a javascript function. It returned false and cancled the form submit if two radio buttons enclosed in the form were not checked. Using a asp function would be more elegant if possible. Has anyone made the Onsubmit function work with an asp function?
View Replies
View Related
I have a button which runs and submits a form and if the name and contact details aren't filled out yet all it does is recalculate some totals.
BUT, my problem is that there is a checkbox in this form that is being cleared when the form is submitted at this stage, is there anyway to stop this??
I am of the understanding that the checkbox has to be in the form because when it is selected it adds a value to a field further down in the form.
There is also another text field that I need retained as well???
View Replies
View Related