On 10 Mar., 08:29, Salil Gaikwad <[email protected]>
wrote:
> > <% remote_form_for :timesheet, @timesheet, :url =>{:action =>
> > 'report_user'}, :html => {:onsubmit=>"return ValidateDate();" } do |f|
> > %>
> > I guess this is a JavaScript issue. What about showing us that?
>
> Thanx 4 ur reply
>
> No i am just telling what problem i m facing.
> i just want to know is onsubmit working properly with remote_form_for?
> and wheather there is any syntax error in my code above ?
No, remote_form_for will use the onsubmit event to make the actual
AJAX request. So I don't think overriding the onsubmit attribute would
be a good idea... :)
--
Cheers,
David Knorr
http://twitter.com/rubyguy
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---