PDA

View Full Version : How to handle file download on ajax request post?



dbassett74
29 Oct 2010, 8:59 AM
Is it possible via an Ajax request post, to have it open a new browser window? Here's what I'm trying to accomplish. Currently, I have a web page that upon posting to it, returns a file, and then the browser does its normal file handling such as asking the user if they want to open or save the file. I want to do this same thing through an Ext Ajax request. But I think (I haven't tried it yet) that the binary info would just get returns within the Ajax request, rather than opening a new window, correct?

Any help on this would be appreciated.

dbassett74
29 Oct 2010, 9:01 AM
Disregard. Seems I already posted something similar before.

http://www.sencha.com/forum/showthread.php?103338

I'll continue my post there...