Yeah, I can do it.

<%= link_to "save", "#", :remote=>true, :onclick=>"save_with_click"%>
function save_with_click(){
  $("#form_id").submit();
}

change to:

<%= form_tag save_file_path, :id => 'mysubmitform' do %>
...

<a href="javascript:save();">save</a>
<script>
  function save(){
    $('#mysubmitform').submit();
    return false;
  }
</script>

...
<% end %>

This function can works for me!! I am using jquery colorbox.
Thank you, Javier.

-- 
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