Displaying 1 result from an estimated 1 matches for "download_sampl".
Did you mean:
download_sample
2006 Dec 01
1
Simple file download doesn't work - please help!
...at, but please don''t suggest send_file otherwise, thanks).
So, I have:
<input type=button value="I AGREE" onclick="do_download();">
in one of my rhtml files, where do_download is a javascript fcn:
function do_download()
{
location.href = ''/products/download_sample.zip''
}
The browser is supposed to see that this is a zip file and put up a pop
up window that
queries whether to save or open. Standard.
In a vanilla html page, what I want to happen is what happens. When I''m
in my RoR site, the browser opens the zip file in a new window, and
d...