On 5/17/07, Vernon Rengo <[EMAIL PROTECTED]> wrote: > > Hi all! > > > I'm requesting a URL like this: > > MochiKit.Async.doSimpleXMLHttpRequest(my_url); > > The response contains a header > > Content-disposition: attachment;filename=my_file.xls > > Unfortunately this header does not have the desired effect. So here's > my question: is it possible to handle a response in a way, that the > browser asks the user to save/open the file, just like it does when I > type "my_url" in it's location bar? >
That's totally counter to the purpose of XMLHttpRequest. What you want can probably be done by creating an iframe pointing at the document or just changing the document's location. -bob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
