Ajax to download a file

Hi

I would like to download a file in an asynchronous manner. From what I
have read, I should be using a hidden iframe. How do I connect the AJAX
request to the iframe to display the file?

Thanks

Jonathan S. wrote:

Hi

I would like to download a file in an asynchronous manner. From what I
have read, I should be using a hidden iframe. How do I connect the AJAX
request to the iframe to display the file?

Thanks

This is probably better asked on a JavaScript forum. It certainly has
nothing to do with Rails.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

You’re mostly correct, but yes, I will post it somewhere on a javascript
board.

Marnen Laibow-Koser wrote:

Jonathan S. wrote:

Hi

I would like to download a file in an asynchronous manner. From what I
have read, I should be using a hidden iframe. How do I connect the AJAX
request to the iframe to display the file?

Thanks

This is probably better asked on a JavaScript forum. It certainly has
nothing to do with Rails.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs