# How to pop up a Download Window

**URL:** <https://rubytalk.org/t/how-to-pop-up-a-download-window/51358>\
**Category:** ruby-talk\
**Created:** [25 January 2009 11:59 UTC](https://rubytalk.org/t/how-to-pop-up-a-download-window/51358 "2009-01-25T11:59:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kumar\_Saurav](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@Kumar\_Saurav](https://rubytalk.org/u/Kumar_Saurav)\
**Post date:** [25 January 2009 11:59 UTC](https://rubytalk.org/t/how-to-pop-up-a-download-window/51358/1 "2009-01-25T11:59:40Z")

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

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Brian\_Candler](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Brian\_Candler](https://rubytalk.org/u/Brian_Candler)\
**Post date:** [25 January 2009 15:24 UTC](https://rubytalk.org/t/how-to-pop-up-a-download-window/51358/2 "2009-01-25T15:24:00Z")

</div>

Kumar Saurav wrote:

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

This is not a Ruby question, but it's something I was trying to do  
recently too.

Google for "javascript save as". From what I found, it can only be done  
in IE.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Richard\_Conroy1](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@Richard\_Conroy1](https://rubytalk.org/u/Richard_Conroy1)\
**Post date:** [27 January 2009 15:08 UTC](https://rubytalk.org/t/how-to-pop-up-a-download-window/51358/3 "2009-01-27T15:08:28Z")

</div>

This is a problem I faced recently enough. The proper solution is to set  
the appropriate HTTP header. I don't have the reference handy, but it works  
for every browser.

The easiest way might be to look at HTTP traffic while doing the download.

regards,  
Richard

> **···**
>
> On Sun, Jan 25, 2009 at 3:24 PM, Brian Candler \<b.candler@pobox.com\> wrote:
> 
> > Kumar Saurav wrote:
> > 
> > > 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.
> > 
> > This is not a Ruby question, but it's something I was trying to do  
> > recently too.
> > 
> > Google for "javascript save as". From what I found, it can only be done  
> > in IE.
