Hello, I'm trying to submit a link using:
<%= link_to_remote " add selected", :html =>{:id => 'multiple_select_form'}, :url => { :controller => "sms", :action => "add_selected_to_recipients_list", :recipients_session_id => @recipientSessionID}, :with => "'checked_client_array='+ document.getElementsByName('checked_client_array') " %> where checked_client_array is a name of a list of checkboxes such as is: <input type="checkbox" id="checked_client_array" name="checked_client_array" value="<%= the_client.id %>"> what I get inside Rails console: {"checked_client_array"=>"[object HTMLCollection]", "recipients_session_id"=>"recipients_list"} if I put the boxes inside regular form it works fine by I want to be submitted from another form so that's why I'm using the :with property for the remote link. Any ideas what I'm doing wrong and how I can submit it regularly. Thanks, TAm -- 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---