Hello,
how can I move below functionality defined in rhtml to the javascript
function?
<% form_remote_tag :url => { :action => :small_courses_list } do %>
<%= submit_tag "click!" %>
<% end %>
I just want to invoke :small_courses_list action from the javascript
function by AJAX.
Thanks
gringo
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-May-15 07:21 UTC
Re: how to invoke form_remote_tag from javascript ?
On May 15, 1:11 am, gringo <greg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > > how can I move below functionality defined in rhtml to the javascript > function? >The easiest way might be to inspect what html/js this produces> <% form_remote_tag :url => { :action => :small_courses_list } do %> > <%= submit_tag "click!" %> > <% end %> >Give it a go and you''ll see it''s just an Ajax.Request using Form.serialize to get the params. Fred> I just want to invoke :small_courses_list action from the javascript > function by AJAX. > > Thanks > gringo--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---