Are you saying that client-side validation throws an error? Which web
framework and version of AppFuse are you using? Does it work on the
demo site?
Matt
On Fri, Apr 25, 2008 at 7:57 AM, Robert Campbell <[EMAIL PROTECTED]> wrote:
> I can't believe I'm the only one encountering this, so I probably am
> doing something competely wrong. I have server-side validation working
> perfectly. I enabled client-side validation by adding this tag:
>
> <validator:javascript formName="xyzForm" staticJavascript="false"
> xhtml="true" cdata="false" />
>
> Which does generate the JavaScript validation at runtime. The problem
> however, is that the function names don't match. See:
>
> var bCancel = false;
>
> function validateProductInformationForm(form) {
> if (bCancel)
> return true;
> else
> return validateRequired(form);
> }
>
> function required () {
> this.aa = new Array("productNumber", "Product Number is required.",
> new Function ("varName", " return this[varName];"));
> this.ab = new Array("conferenceCode", "Conference Code is required.",
> new Function ("varName", " return this[varName];"));
> this.ac = new Array("regionId", "event.region is required.", new
> Function ("varName", " return this[varName];"));
> ...
>
> Please note: "return validateRequired(form);" versus a function name
> of "required ". A bunch of seaching has only turned up 1 other guy
> asking the same question, with no answers.
>
> Thanks everyone!!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]