• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Even script validation return false, action method of AjaxSubmitbutton is executed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Custom EOSortOrdering for a WODisplayGroup
  • Next by Date: Re: Custom EOSortOrdering for a WODisplayGroup
  • Previous by thread: problems with postgresql prototypes
  • Next by thread: WONoVA ERModernDirectToWeb Video by David LeBer!
  • Index(es):
    • Date
    • Thread