On 15/11/2010 16:05, Tristan Koch wrote: > Hi, > > AFAIK, the only way to trigger a file download dialog is to actually > send a request to a server (*) and make sure the server responds with > special headers. I think, what you're looking after is probably > "Content-Disposition attachment". Maybe you'll find [1] helpful. > > If I follow you correctly, you mentioned your data is "in the client". > Does that mean you don't have the data on the server? In that case, I > guess you'll need to save this data and program your backend to send > this data back as CSV file. > > (*) As Derrell pointed out, qx.ui.embed.Iframe should do the job. > > Regards, > Tristan > > [1] http://www.thingy-ma-jig.co.uk/blog/06-08-2007/force-a-pdf-to-download > > Am 15.11.2010 um 15:21 schrieb Joffrey Fuhrer - NOVLOG: > >> No, I don't need to display the data on the screen: in the end, >> I want the application user to have a "whatever.csv" file on his >> filesystem that he'll be able to open with whatever application he >> wants to >> use: Excel, opencalc, google docs... Just as if I provided him with a >> link >> like http://hello-world.com/whatever.csv >> >> >> Thank you once again, >> -- >> Joffrey Fuhrer >> NOVLOG Intern
Hey, Thanks to Derell and Tristan for the tips and tricks. With your help and a little internal discussion, we've been able to decide in which way we wanted to go with all this, even though the solution is different and may seem strange at first glance. I'm on the way of implementing it and will give the general idea once I'm sure it works. Thanks for bearing with me :) PS: As for the content-type issue, it seems to me that setting it to "text/csv" is enough for it to be handled properly - at least in this case! -- Joffrey Fuhrer NOVLOG Intern ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
