On Thu, Jan 12, 2012 at 12:04 PM, Joachim Cheng wrote:
Yes, a page has many form to fill. when you click [x] close button, it
appear the dialog as above. When I try to click 'save' button, it won't
works..
--
Yes, a page has many form to fill. when you click [x] close button, it
appear the dialog as above. When I try to click 'save' button, it won't
works..
--
* inside the function that grabs the "save" action
$("#form_id").submit();
I'm not really sure the way colorbox works, what I gave works for example:
<%= link_to "save", "#", :remote=>true, :onclick=>"save_with_click"%>
function save_with_click(){
$("#form_id").submit();
}
I think you can do the same with your submit button
Javier
--
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@googlegroups.com.
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.