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 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
browser has no idea when and what types of responses the XMLHTTP
object
is getting) Maybe the XMLHTTP object passes control back to the
browser
with that header? Is that what you're saying? As I said, I COULD be
wrong, but I'm gonna have to say no (and sorry but I'm too busy to
actually test this).
At any rate, even if the browser is notified and takes control away
from
the XMLHTTP object, that's not what the OP wants. He wants total
behind
the scenes control of the download (almost sounds like he wants to
build
a javascript based download manager). And I'll stick with my original
answer and say it's not possible.
The information transmitted in this electronic mail is intended
only for the
person or entity to which it is addressed and may contain
confidential,
proprietary, and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance
upon,
this information by persons or entities other than the intended
recipient
is prohibited. If you received this in error, please contact the
sender and
delete the material from all computers.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs