A
amerar
Hi All,
Here is my situation: I have a form where the user can perform a
number of tasks. One of these tasks is to enter a new record. The
form has an 'onsubmit' property to validate the data if the users
enters a new record.
However, there is also a button to allow the user to 'duplicate' a
stored record. In that case, I do not want to perform the entire
validation since most of the data will be fetched from the database
behind the scene. But, when the form submits, the 'onsubmit' property
takes off and attempts to validate the form......
What is the best way to handle this? Basically different behaviors
when the form is submitted??
I'm not a good Javascript programmer, so explaining throughly would
really help.
Thanks,
Arthur
Here is my situation: I have a form where the user can perform a
number of tasks. One of these tasks is to enter a new record. The
form has an 'onsubmit' property to validate the data if the users
enters a new record.
However, there is also a button to allow the user to 'duplicate' a
stored record. In that case, I do not want to perform the entire
validation since most of the data will be fetched from the database
behind the scene. But, when the form submits, the 'onsubmit' property
takes off and attempts to validate the form......
What is the best way to handle this? Basically different behaviors
when the form is submitted??
I'm not a good Javascript programmer, so explaining throughly would
really help.
Thanks,
Arthur