"download" of client-side data from JS (without a new server round-trip)
<p>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.</p>

<p>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.</p>

<p>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.</p>

<p>I want to allow them to save the data to a local file.  I understand the security implications here.</p>

<p>I believe this is possible using dataurl, but (thank you MS), this has to work in IE7 and 8.. so that's out.</p>

<p>Any out-of-the-box ideas?</p>
