Steve,
If you need that kind of control over the reset then I suggest you use
the resetForm function rather than the resetForm option property. In
your success handler, once you've determined there is no logical error
you, can simply invoke:
$('#myForm').resetForm();
Mike
On 8/29/07, Steve
Hi mike,
First and foremost, thanks for your reply!
As for the validation, should I return a string such as 'errors' and
eval() it in my success callback? I'm not entirely sure how to let js
know that the server deemed something in the form as a booboo.
Thanks again.
- sf
Sent from my
Steve,
How you handle the server response is entirely up to you of course.
Personally, I like to use json and do something like this:
success: function(json) {
if (json.error) {
// display error
alert(json.error);
}
else {
// process response where json.data
3 matches
Mail list logo