Hi, I would like to implement this: I have a view that shows a list of elements. Each element have a checkbox. The user can select some events marking the checkbox and click the link_to_remote "Print this elements". When this link is clicked another window is open with only the selected events and is printed (ala Google Maps).
I have coded the selection of items and I'm able to open a new window. I use the link_to_remote like this: <%= link_to_remote 'Imprimir incidencias marcadas', { :url => '/incidencias/popup', :submit => 'table' } %> The elements are submited properly. I know how to open the new window: popup.rjs: page << "window.open('/events/print', 'print', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0' );" But I don't know how to pass the list of elements from popup.rjs to /events/print in the new window!! Any idea will be appreciated. -- 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 -~----------~----~----~----~------~----~------~--~---