Changed at 11 December 08 / 19:50
A thing on our wishlist for FH is ajax validation using the existing class.validator.php.
In our development environment we can now use the existing validation funtions to validate a form on the fly except for the radiobutton and checkbox fields since the different parts don't have the same id.
We don't want to add a class in order to have ajax validation working and we don't want to miss use a html tag or use a custom tag to get ajax validation working.
I think, if you want help, you should show us, how you use the ajax validation in fields. How do you use the validator-class. Perhaps you should provide a betaversion of formhandler with ajax validation for logged in users!?
If you include prototype, i also have some interesting things for a dynamic formular :-)
Changed at 12 December 08 / 15:35
It's in a to early stage to bring it out as a beta.
A lot of code beautyfying should be done before showing the code to someone else.
however the result of my test can be found at TEST
we tried this before and never came to a nice solution.
That's another reason not to bring out a beta, it's possible we will remove this again and never release it.
... except for the radiobutton and checkbox fields since the different parts don't have the same id.
Hi Johan,
why do you want to validate radiobuttons and checkboxes by this way? The only validate-Function which you can use is "notEmpty", or?
An the next question is: When do you want to validate? If you validate by losing the focus at one of the boxes, the errormessage will be shown in the most cases to early because users can want to activate only the second.
In my opinion, the ajax-validation is only useful for fields, which can be edit with text and combos.
By the way, i've tried to solve your problem by the $$-function on prototype!:
the reason to want to have ajax validation on this fields is that we want to try to also use the ajax validation after someone presses a submit button.
You are right about the moment of validating te radio and checkbox field. Possibly you don't want this on the fly, but you certainly want this after a submit.
While testing we came to the conclusion we don't want to validate the radiobutton and checkbox on the fly. Next step is ajax validation on submit (which includes radiobutton checkbox).