# How to pop up a Download Window

**URL:** <https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158582>\
**Category:** Rails\
**Created:** [January 25, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158582 "2009-01-25T13:02:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sauravsuman012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Post date:** [January 25, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158582/1 "2009-01-25T13:02:20Z")

</div>

Hi all ,  
I have to show window as like you got on click of save(or by pressing of  
ctrl+s), which exact function like the crtl+s press.  
Please let me know if anyone having any idea regarding this.  
It would be great help for me.

Thanks In Advance.

---

<div class="post-metadata">

**Author:** ![sauravsuman012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Post date:** [January 25, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/how-to-pop-up-a-download-window/158582/2 "2009-01-25T17:15:05Z")

</div>

Kumar S. wrote:

> I have to show window as like you got on click of save(or by pressing of  
> ctrl+s), which exact function like the crtl+s press.  
> Please let me know if anyone having any idea regarding this.  
> It would be great help for me.

If your user can hit the Submit button of a form - maybe labeled “Save”

- the  
controller’s action can call send\_file. This returns to the user as the  
“Save As  
Dialog”, which is what you describe.

If your form depends on Ajax, you can add a tiny 1px
