I've got a bunch of data on the client side, in JS. I want to allow the user to save that data to the local hard drive in text (CSV actually) format.
I can easily accomplish this by posting all of this data up to the server using ajax, then initiate a GET from the client to download the data. But that seems wasteful. Especially if the data is large.
The client already has the data -- I could certainly show it to them, and allow them to copy/paste it into their favorite text editor -- but that's not a very nice UI.
I want to allow them to save the data to a local file. I understand the security implications here.
I believe this is possible using dataurl, but (thank you MS), this has to work in IE7 and 8.. so that's out.
Any out-of-the-box ideas?