search for: validate_form

Displaying 3 results from an estimated 3 matches for "validate_form".

2007 Dec 08
2
Assigning submit handler to form
Hi folks, A quick question for somebody. I''m adding a simple validation JS to my form by attaching it like so: $(''my_form'').observe(''submit'', function(e) { return view_ns.validate_form(Event.element(e)); }); The validate_form() function returns true or false. But regardless of it''s return value, the form is always submitted. ''sup wi dat''? Any ideas? Oh, and it''s wrapped in an anonymous function that''s passed to a onload bootstrap fun...
2006 Nov 04
6
Javascript form validation for In place editting in scriptaculous ?
Is there a way by which I can do form validation for form generated by In Place Editting of scritaculous? The reason is, I want to avoid server roundtrip for checks which I can perform at browser. Regards, Jatinder -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060828/ca882668/attachment-0001.html
2012 Aug 16
6
undefined method `with_indifferent_access' for "":String
...rams[:id]) @comp.update_attributes(params[:comp]) NoMethodError (undefined method `with_indifferent_access'' for "":String): This is the code from the view where I create this elements = form_for @comp, :html => {:id => "new_form", :onsubmit => "return validate_form()"}, :remote => true do |f| = f.fields_for :comprobante_emis_regs_attributes do |cer| = cer.collection_select :reg_fil, current_contribuyente.contribuyente_regs, :reg_fil, :reg_fil, {:include_blank => false}, :class => ''reg_fil'', :name => "comp...