I don’t know why this never occurred to me until I read Hal Helm’s post (and no one told me about it).. This an email that I just sent around to the team (hopefully someone will try it out).
Usually when we create a form we need to do:
- Client side validation
- Server side validation
While reading Hal’s post a couple days ago he described a technique where the validation logic only need to be written once for both server and client side. He was using CFAJAXPROXY (which I haven’t used before), his technique is quite advanced, I don’t’ fully understand how he does it. But at least in similar manner we can use Ajax to do client side validation.
2 types of of form submit:
1. Ajax submit:
2. Normal form submit
But I haven’t tried this myself, in theory this should work right? Thoughts?