Is there a way of generating client-side javascript validations, maybe
Unobtrusive Javascript or something like that?
Thanks
Is there a way of generating client-side javascript validations, maybe
Unobtrusive Javascript or something like that?
Thanks
Hi Dmitry, inspired by your post I’ve put together a small Rails plugin
that lets you create unobtrusive AJAX validations that hook into your
model validations, making things nice and dry. If it finds an error
when you tab out of a field, it adds an “error” class to the field and
inserts a list of validation errors. It can also take a callback which
it sends the errors to in JSON format for advanced handling.
There is still some cleaning up to be done but I hope to have something
out next week.
unknown wrote:
Hi Dmitry, inspired by your post I’ve put together a small Rails plugin
that lets you create unobtrusive AJAX validations that hook into your
model validations, making things nice and dry. If it finds an error
when you tab out of a field, it adds an “error” class to the field and
inserts a list of validation errors. It can also take a callback which
it sends the errors to in JSON format for advanced handling.There is still some cleaning up to be done but I hope to have something
out next week.
That’s great, I’ll try your plugin once it is ready
unknown wrote:
Hi Dmitry, inspired by your post I’ve put together a small Rails plugin
that lets you create unobtrusive AJAX validations that hook into your
model validations, making things nice and dry. If it finds an error
when you tab out of a field, it adds an “error” class to the field and
inserts a list of validation errors. It can also take a callback which
it sends the errors to in JSON format for advanced handling.There is still some cleaning up to be done but I hope to have something
out next week.
This sounds a lot like what I’ve done for my company a while back.
I described my approach in detail in “Ajax validation on Rails”, which
is available at http://www.bigsmoke.us/ajax-validation-on-rails/ if
you’re
interested.
I never thought of turning it into a plugin, though. I’m very curious to
see what you’ll make of it. It sounds like a great idea!
On Monday 04 September 2006 07:48, Dmitry H. wrote:
Is there a way of generating client-side javascript validations,
maybe Unobtrusive Javascript or something like that?
Yes:
http://www.agilewebdevelopment.com/plugins/client_side_validation
http://www.agilewebdevelopment.com/plugins/validation_reflection
Michael
–
Michael S.
mailto:[email protected]
http://www.schuerig.de/michael/
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs