Even script validation return false, action method of AjaxSubmitbutton is executed
Even script validation return false, action method of AjaxSubmitbutton is executed
- Subject: Even script validation return false, action method of AjaxSubmitbutton is executed
- From: Venu A <email@hidden>
- Date: Fri, 7 May 2010 12:15:23 +0530
Hi All,
I have WOTextField,AjaxSubmitButton in a AjaxUpdateContainer which all are place in a WOForm. When i click on a SaveButton, even client side validation shows errors, the
action( method which is given for action binding of AjaxSubmitbutton) will be executed.
How can i make to stop the execution of action method for AjaxSubmitButton if client side valdiation will be shows errors.
Even i have tried with simple onClick function using SaveButton1 which will just return false for onClick, in this case also same will be happened.
<WEBOBJECT NAME=Form1>
<WEBOBJECT NAME=TestUpdateContainer>
<WEBOBJECT NAME=TextField1></WEBOBJECT>
<WEBOBJECT NAME=SaveButton></WEBOBJECT>
<WEBOBJECT NAME=SaveButton1></WEBOBJECT>
</WEBOBJECT>
</WEBOBJECT>
Bindings are:Form1: WOForm {
multipleSubmit = true;
name = "TicklerDisplayForm";
}
TestUpdateContainer: AjaxUpdateContainer {
id = "TestUpdateContainer";
evalScripts = true;
}
TextField1: WOTextField {
value = testScrip;
id = "TestScrip";
}
SaveButton: AjaxSubmitButton {
value = "SaveButton";
class = "ok";
testScripValidation();";
action = ""> evalScripts = true;
}
SaveButton1: AjaxSubmitButton {
value = "SaveButton1";
class = "ok";
false;";
action = ""> evalScripts = true;
updateContainerID = "TestUpdateContainer";
}
Can anyone help me with this?
Thanks in advance,
Venu.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden