Glenn Cadman wrote:
How do I inside a AJAX form_remote_tag construct, create a button that when clicked will do the following:
a) The controller will have the params of the form available to modify the results(ie the search filter value), I can get excel start with a link_to a different controller but the values of the form are not available (or I dont know how to access or include them in a link_to call)
b) Popup, render or send_data or any way to send a full page with the correct headers to have a browser start excel.
Change the form to a normal form, with its target parameter optionally
set to "_blank", and change the AJAX submit to submit_to_remote.