gringo
(gringo)
1
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
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