search for: person_form

Displaying 2 results from an estimated 2 matches for "person_form".

2006 Oct 13
2
form_for() and name
how can i give name attributes for form_for(), so it will give an output like <form name="f">. it is because that i need to access the form name for javascript manipulation. as far as i know, name can only used in form_tag(), but i currently have more than 50 forms that built using form_for(). the structure is like this: <% form_for symbol, item, :url => { :action
2006 Aug 14
2
Plugins: Validation Reflection and Client-Side Validation
...lements. Writing these functions is a bit tricky. If you really need such a thing, look at the code for <tt>Form.Validator.Validators#exactly</tt> and <tt>Form.Validator.Validators#different</tt>. == Notifying Users of Validation Results Form.Validator.install(''person_form'', { onElementStatusChange: { person_last_name: function(isValid) { if (!isValid) alert(this.value + " is not a valid last name."); }, }, onFormStatusChange: function(isValid) { if (!isValid) alert("Your form is not valid!"); } }); If...