G
Guest
For client side validation, the following code is generated by the framework
<form name="Form1" method="post" onsubmit=" if (!ValidatorOnSubmit()) return
false; MyFunction...">
My Problem is that, I need to call another javascript function regardless of
whether or not ValidatorOnSubmit() is true or false (i.e client side
validation fails or passes). My WebUIValidation.js has
function ValidatorCommonOnSubmit() {
var result = !Page_BlockSubmit;
Page_BlockSubmit = false;
event.returnValue = result;
return result;
}
But still my form has onsubmit = "if (!ValidatorOnSubmit()) return false;
MyFunction()"
Hence MyFunction() is not being called when the validation fails. I want it
to be called everytime.. how can I change this so that my function is also
called??
Any help will be appreciated..
<form name="Form1" method="post" onsubmit=" if (!ValidatorOnSubmit()) return
false; MyFunction...">
My Problem is that, I need to call another javascript function regardless of
whether or not ValidatorOnSubmit() is true or false (i.e client side
validation fails or passes). My WebUIValidation.js has
function ValidatorCommonOnSubmit() {
var result = !Page_BlockSubmit;
Page_BlockSubmit = false;
event.returnValue = result;
return result;
}
But still my form has onsubmit = "if (!ValidatorOnSubmit()) return false;
MyFunction()"
Hence MyFunction() is not being called when the validation fails. I want it
to be called everytime.. how can I change this so that my function is also
called??
Any help will be appreciated..