[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to pop up a Download Window

Kumar Saurav

1/25/2009 12:00:00 PM

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

2 Answers

Brian Candler

1/25/2009 3:24:00 PM

0

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

Richard Conroy

1/27/2009 3:08:00 PM

0

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.

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