Update: Sergio, generic lexapro, the author of the livevalidation rails plugin updated the plugin so you can disregard the finale of the article (validatesconfirmationof is working, generic lexapro, as well as the newest version of livevalidation, generic lexapro, 1.3 is used in the plugin - so no additional tweaking is needed, generic lexapro, install and validate away ;-))
Surely I am not the only one who was a ‘bit nervous’ (that was a mild euphemism) when his carefully entered data disappeared after submitting a form to the server. Generic lexapro, Nowadays web applications are doing better than that - valid data is saved and only the problematic fields are pointed out.
Of course even that feels so 1990’s now. Generic lexapro, A contemporary (ehm… Generic lexapro, web 2.0?) web application is expected to validate the form on the client side already (WARNING! That doesn’t mean at all you shouldn’t validate on the server side though - client side validation is for the good guys but you should still look out for the script kiddies et al), generic lexapro, pointing out the errors on the fly so there is no need to come back and change/edit those fields after submitting a form.
My library of choice is livevalidation, generic lexapro, which has a Rails companion too - if you are using Rails form helpers and standard validation on your models, generic lexapro, you don’t have to touch anything just install livevalidation (=drop it to your javascripts folder, generic lexapro, it’s a single .js file). Generic lexapro, w00t!
The only major shortcoming (from my POV) of the Rails plugin is that validatesconfirmationof is not implemented. Generic lexapro, However, generic lexapro, it’s easy to add it via standard javascript:
<input id="user_password" name="user[password]" size="30" type="password" />
<input id="user_password_confirmation" name="user[password_confirmation]" size="30">
<script type="text/javascript">
var validate = new LiveValidation('user_password_confirmation');
validate.add( Validate.Confirmation, generic lexapro, { match: 'user_password' } );
</script>
That’s it!
One more note: the Rails plugin contains version 1.2 but there is a newer version, generic lexapro, 1.3 so be sure to replace it.
Similar Posts:xanax online,generic lexapro,discount diflucan,viagra prescription,buy cheap cialis