M
Mtek
Hi,
We have a form defined with buttons like this:
<a class="save_menu" href="javascript:document.Detail_Screen.action =
'savedata.php?screen=EDIT';document.Detail_Screen.submit();">Update</
a>
The form also has an onSubmit action to vall a validation routine:
<FORM name='Detail_Screen' action="savedata.php" METHOD="POST"
onsubmit='return formvalidation(this)'>
The problem is that the formvalidation routine is not being fired.
I'm at a loss here. Can anyone help us with this? At the end of the
javascript validation routine, we have this:
thisform.submit();
So, the form seems to submit, but not the way we want it to. We want
it to execute the validation routine first.....
Thank you.
John.
We have a form defined with buttons like this:
<a class="save_menu" href="javascript:document.Detail_Screen.action =
'savedata.php?screen=EDIT';document.Detail_Screen.submit();">Update</
a>
The form also has an onSubmit action to vall a validation routine:
<FORM name='Detail_Screen' action="savedata.php" METHOD="POST"
onsubmit='return formvalidation(this)'>
The problem is that the formvalidation routine is not being fired.
I'm at a loss here. Can anyone help us with this? At the end of the
javascript validation routine, we have this:
thisform.submit();
So, the form seems to submit, but not the way we want it to. We want
it to execute the validation routine first.....
Thank you.
John.