On Sat, 12 Jan 2002, [EMAIL PROTECTED] wrote: > Hi, > > I have a question about AxKit::XSP::PerForm. When I validate > a field, and say I find it correct, what would be the best > way to communicate this error to the browser ? Since my validation > function is not inside my root content tag, I can not print content... > Should I just set some global $Error and $ErrorDesc variables > in my validation functions ? What's the original intention here ?
Throw an exception. The string value of the exception goes in the widget's <error> tag. Just make sure your stylesheet displays that wherever you want errors to go (the stylesheet shipped with PerForm has some code to do this, IIRC). -- <!-- Matt --> <:->Get a smart net</:-> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
