you are in: codestackercodes [RSS]validation client-side with form_tag and form_remote_tag

validation client-side with form_tag and form_remote_tag Delicious Email

create your javascript validate function and call in your form

show/hide lines
   1  <% form_tag "/login", :onsubmit => 'return validate(this)' do %>
   2      <!-- your form -->
   3  <% end %>
   4  
   5  <!-- or -->
   6  
   7  <% form_remote_tag :url => "/login", :update => 'temp', :before => 'if( !validate(this) ) return false' do %>
   8      <!-- your form -->
   9  <% end %>
created by leozera — 30 November 2008 — get a short url — tags: form_remote rails validation embed

Comments



We dont send spam :)

If checked, it's highlights your comment
simple_captcha.jpg
Are you a human? Type the code from the image