View Full Version : ext direct response is excel
10 Nov 2009, 5:56 AM
I have a form that gets submitted via direct (the .net mvc one) and returns an excel file as the response - is there anyway of dealing with that sort of response? it's trying to parse the file as json :(
10 Nov 2009, 6:16 AM
No, there isn't. You shouldn't be requesting this document using Ext.direct.
You should use an IFRAME to request documents.
11 Nov 2009, 8:04 AM
But this is a nice idea at all!
I run into that missing peace aswell... Extjs could easily manage that by adding a new Ext type. Like we allready have for formrequests. Which uses form submit to setup a request to the server in the same way an form request does when uploading a file. Bypass the request into an Iframe where the response could be a file now!
I think this would be really great since you could really have one bottleneck http handler to handle all kinds of Communications between Extjs and Serverside!!!
Best regards Martin
11 Nov 2009, 11:47 PM
You could use this extension (http://www.extjs.com/forum/showthread.php?p=385087#post385087) to request documents.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.