Re: [Rails-spinoffs] Ajax request for file downloads

2006-03-16 Thread David Zülke
No, because a) you're right about XMLHTTP requests not being able to handle this and b) that information is totally wrong, if any, then it should be Content-Disposition: attachment, not Content-Type: application/binary - David Am 16.03.2006 um 15:18 schrieb Ryan Gahl: If the server deliver

RE: [Rails-spinoffs] Ajax request for file downloads

2006-03-16 Thread Ryan Gahl
> If the server delivers that with the http header > > Content-Type: application/binary > > then you should get the browser behavior you're looking for. Is that true with the XMLHTTP object? I was under the impression that it's handling of responses is self contained from the browser (i.e. the b

RE: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Miller, Raul D
Ian Tyndall wrote: > I'm not sure if this has been discussed before, but is it possible to > get a file download as a response from Ajax.Request? I know you can > have response txt or xml, but how would I go about requesting a file > download? Currently I'm requesting the download like this: >

Re: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Ian Tyndall
Ryan Gahl wrote: But as you know, this ties up the browser and gives me little control of the download. I'm wondering, what control of the download do you need? The browser and user should be in control of any file downloads... The information transmitted in this electronic ma

Re: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Andrew Kaspick
oh, a download, thought he was referring to an upload. forget my post. :) On 3/15/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > > But as you know, this ties up the browser and gives me little control > of > > the download. > > > I'm wondering, what control of the download do you need? The browser an

RE: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Ryan Gahl
> But as you know, this ties up the browser and gives me little control of > the download. I'm wondering, what control of the download do you need? The browser and user should be in control of any file downloads... The information transmitted in this electronic mail is intended only for the pers

Re: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Andrew Kaspick
m: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ian > Tyndall > Sent: Wednesday, March 15, 2006 2:43 PM > To: rails-spinoffs@lists.rubyonrails.org > Subject: [Rails-spinoffs] Ajax request for file downloads > > I'm not sure if this has been discuss

RE: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Ryan Gahl
s.org Subject: [Rails-spinoffs] Ajax request for file downloads I'm not sure if this has been discussed before, but is it possible to get a file download as a response from Ajax.Request? I know you can have response txt or xml, but how would I go about requesting a file download? Currently I&#x

[Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Ian Tyndall
I'm not sure if this has been discussed before, but is it possible to get a file download as a response from Ajax.Request? I know you can have response txt or xml, but how would I go about requesting a file download? Currently I'm requesting the download like this: window.location = '