I want to use onsubmit for a form validation using javascript on
remote_form_for

for this i am doing something like this

<% remote_form_for :timesheet, @timesheet, :url =>{:action =>
'report_user'}, :html => {:onsubmit=>"return ValidateDate();" } do |f|
%>


    // Form elements here


<% end %>

but it not works well. if condition return false then my form is not get
submitted this is exactly what i want but when it returns true it
produce something like this o/p on UI.

Element.update("user_report", "\n\n\u003Ctable class=\"list
issues\"\u003E\n    \u003Cthead\u003E\u003Ctr\u003E\n
\u003Cth\u003E#\u003C/th\u003E\n

when i delete :html code it works fine.

Regards,
Salil
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to