Hello,

i'm trying to download an XML file using an web application by using an ajax submit to a hidden iframe form, as a handler of a button:
Code:
                        if (!Ext.fly('frmDummy')) {
                            var frm = document.createElement('form');
                            frm.id = 'frmDummy';
                            frm.name = id;
                            frm.className = 'x-hidden';
                            document.body.appendChild(frm);
                        }
                        Ext.Ajax.request({
                                url: ajaxurl,
                        	method: 'POST',
                            disableCaching	: false,
                            isUpload		: true,
                            params: {
                        		action		: 'extjs_export_alloc'
                        	},
                            form			: Ext.fly('frmDummy'),
                            scope			: this,
                            success: function(response){
                        		
                            },
                            failure: function(response){
                                
                            }
                        });
and my php backend headers are:
PHP Code:
header("Content-Type: application/octet-stream");
header("Content-Transfer-Encoding: binary");
header("Content-Disposition: attachment; filename=Export.xml;");
header("Content-Type: text/xml");
header("Pragma: no-cache");    
header("Expires: 0"); 
This works in any browser, including IE, but not working on Adobe AIR.
I've searched the web for answer and it seams that Adobe AIR cannot handle very well headers with:
Code:
Content-Disposition: attachment;
Can you please tell me if there is another solution, and not an AIR one. I've running out of time and i cannot do it on AIR ActionScript 3 as i've read.

Thank you.