Hello,

I have a similar problem and I am using select helper alongwith 
observe_field. Any clues are greatly appreciated.

View:

<%= select('temp_data','choose', ["Spreadsheet","Flat 
Spreadsheet","Pipe-delimited","Flat Pipe-delimited"], {:selected => 
nil},{:id => "report_download_select"}) %>

<%= observe_field 'report_download_select', :url => {:action => 
'generate_report', :id => @dataset}, :on => 'focus', :with => 
"'report_download_select=' + $F('report_download_select')", :update => 
{} %>


Controller:

...
...
send_data(output.read,  :type => content_type,  :filename => filename, 
:encoding => 'utf8')



Rob Biedenharn wrote:
> On Jun 19, 2007, at 1:10 PM, Siva wrote:
>>       :encoding => 'utf8',
>>       :type => 'application/octet-stream',
> 
>         :filename => @filename
> 
>> the server. The browser shows the file download window. But it shows
>>>
>>>>>    <%= form_remote_tag :url => {:action => "csv_dump" }%>
>>>>>    <%= submit_tag "Download Complete List" ,:name => "csv"%>
>>>>>    <%= end_form_tag %>
>>>>
>>>> Make the form a non-AJAX form, use submit_to_remote to trigger
>>>> the AJAX call to update the div, and use an ordinary submit tag
>>>> to trigger the CSV send.
>>>>
>>>> --
>>>> We develop, watch us RoR, in numbers too big to ignore.
> 
> Rob Biedenharn    http://agileconsultingllc.com
> [EMAIL PROTECTED]

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