Real-Time Form Validation plugin
Plugin details
Documentation
Download and extract the contents of 'the_plugin' directory to your 'vendor/plugins' directory. Please the the rtv_sample_app for more details.
Usage:
=======
Download and extract the contents of 'the_plugin' directory to your 'vendor/plugins' directory. Please the the rtv_sample_app for more details.
In your controller:
include UIEnhancements::RealtimeValidation helper :RealtimeValidation realtime_validation_for(:the_form_id, :the_model)
In your view, after a form:
<%= realtime_validation_for :the_form_id, :the_model %>
In your CSS (example):
.fieldWithoutErrors, .fieldWithErrors { outline-width: 1px; outline-color: white; outline-style: solid; /* !!HACK!! IE will not use this because it does not understand !important. Border is not needed for firefox, so make it 0px!*/ border-width: 0px !important; /*for IE!*/ border-width: 1px; border-color: white; border-style: solid; } .fieldWithErrors { background: pink; background-color:pink; outline-color: red; /*for IE!*/ border-color: red; } /* Browser support may be limited here...*/ .fieldWithErrors input, .fieldWithErrors select, .fieldWithErrors textarea { background: pink; background-color: pink; }
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | Back in time (1 older version) | Last edited by: hardway, about 1 year ago

